Comment 20 for bug 1422469

Revision history for this message
In , Luca-p-fama (luca-p-fama) wrote :

(In reply to Wolfgang Bauer from comment #10)
> (In reply to Emmanuel Pescosta from comment #5)
> > All bookmark changes are properly written to disk
> > (.local/share/kfileplaces/bookmarks.xml for KF5 and
> > .kde4/share/apps/kfileplaces/bookmarks.xml for kdelibs4)
> >
> > e.g. when I add test as bookmark following element will be added to
> > bookmarks.xml:
> >
> > <bookmark href="file:///home/emmanuel/test">
> > <title>test</title>
> > <info>
> > <metadata owner="http://freedesktop.org">
> > <bookmark:icon name="inode-directory"/>
> > </metadata>
> > <metadata owner="http://www.kde.org">
> > <ID>1426502493/1</ID>
> > <IsHidden>false</IsHidden>
> > </metadata>
> > </info>
> > </bookmark>
> >
> > Also updating bookmarks on all running instances works properly.
> >
> > The problem happens while loading the bookmarks.
>
> It seems to me that dolphin (kdelibs) only loads/respects
> ~/.local/share/user-places.xbel now, but ignores
> ~/.kde4/share/apps/kfileplaces/bookmarks.xml. If I add a bookmark to the
> latter (using a text editor), it doesn't show in dolphin (and in the file
> open/save dialog neither); if I add it to user-places.xbel, it works (in
> both dolphin and the file open/save dialog).
>
> BTW, adding an entry in the file open/save dialog makes it appear in dolphin
> as well.

(In reply to Kristjan from comment #11)
> (In reply to Wolfgang Bauer from comment #10)
>
> > It seems to me that dolphin (kdelibs) only loads/respects
> > ~/.local/share/user-places.xbel now, but ignores
> > ~/.kde4/share/apps/kfileplaces/bookmarks.xml. If I add a bookmark to the
> > latter (using a text editor), it doesn't show in dolphin (and in the file
> > open/save dialog neither); if I add it to user-places.xbel, it works (in
> > both dolphin and the file open/save dialog).
> >
> > BTW, adding an entry in the file open/save dialog makes it appear in dolphin
> > as well.
>
> I've been wondering the whole day why my user-places.xbel is empty and why I
> can't add entries by dragging and dropping in Dolphin.
>
> Thanks for the helpful information:)

I can confirm that adding an entry in the open/save dialog makes it appear in dolphin. Additionally, both ~/.kde4/share/apps/kfileplaces/bookmarks.xml and ~/.local/share/user-places.xbel get a new entry. So it seems that entries in ~/.local/share/user-places.xbel are ignored like Wolfgang Bauer suggests.
Thanks for the tip!