<div dir="ltr"><div dir="ltr"><div><div><div>Hi everyone,<br><br></div>I want to ask you,
if you can help me to fix the "Places bookmarks disappear" bug [1],
which was introduced by commit 2b5c6e42fc8114c6854ce490b9cdd4356be683d9 in kdelibs [2].<br><br></div><div>The adoption for Dolphin [3] has no effect on this bug.<br></div><div><br></div>I
have done some research and I'm a little bit confused why
KFilePlacesModel has a (not exported) KFilePlacesSharedBookmarks, which
syncs the bookmarks (user-places.xbel and kfileplaces/bookmarks.xml) on
each change. What is the purpose of it? Is it to keep backward compatibility for bookmarks.xml users?<br><br></div>My assumption is, that before the bookmarks
race condition has been fixed, each places change in Dolphin implicitly
triggered a bookmarks sync in the KFilePlacesModel.<br>Do we need to
sync the bookmarks in Dolphin as well? But why do we store the bookmarks
in two files? Why not only in bookmarks.xml or user-places.xbel?<br><div><div><div><br></div><div>So the possible solutions I see are:<br></div><div>* Store the bookmarks in one file (user-places.xbel) and remove the syncing<br></div><div>*
Move KFilePlacesSharedBookmarks to KBookmarks and integrate it into the
current code so that all clients of KBookmarks automatically make use
of it<br><br></div><div>Thanks in advance! :)<br></div><div><br></div><div>Cheers,<br></div><div>Emmanuel<br></div><div><br>[1] <a href="https://bugs.kde.org/show_bug.cgi?id=345174" target="_blank">https://bugs.kde.org/show_bug.cgi?id=345174</a><br>[2] <a href="http://quickgit.kde.org/?p=kdelibs.git&a=commit&h=2b5c6e42fc8114c6854ce490b9cdd4356be683d9" target="_blank">http://quickgit.kde.org/?p=kdelibs.git&a=commit&h=2b5c6e42fc8114c6854ce490b9cdd4356be683d9</a><br>[3] <a href="https://git.reviewboard.kde.org/r/122640/" target="_blank">https://git.reviewboard.kde.org/r/122640/</a></div></div></div></div></div>