Gtk bookmarks location

Foresight mark at foresightlinux.org
Sun Jan 5 10:19:36 CET 2014


On Sun Jan   5 00:25:25 2014 Alistair Buxton <a.j.buxton at gmail.com> wrote:
> It's come to my attention that recent versions of both gtk2 and gtk3
> use a different file for gtk bookmarks.
> 
> First this file is checked:
>     filename = g_build_filename (g_get_user_config_dir (), "gtk-3.0",
> "bookmarks", NULL);
> 
> If it doesn't exist or some other problem, the old file location is
> checked:   filename = g_build_filename (g_get_home_dir (),
> ".gtk-bookmarks", NULL);
> 
> If the bookmarks are loaded from the legacy file, they should be
> written to the new file.
> 
> This is the reason why thunar bookmarks don't show up in file
> requesters "sometimes".
> 
> I intend to fix this in thunar and places plugin. Does anything else
> xfce-related use these bookmarks?
> 
> I intend to fix this in the following way:
> 
> 1. Update all apps to behave exactly like they do now, except to use
> the new file instead of the legacy one.
> 2. Add an extra check to load from the legacy file if the new file is
> missing, but not change anything else, so that the new file is still
> what is watched for changes, and where bookmarks are saved to.
> 
> This means the user's bookmarks will get copied into the new location
> when one of the following happens:
> 
> 1. Open a Gtk file requester.
> 2. Add or delete a bookmark in thunar.

But that would mean that if zyou already used something that created the new file without checking for the old one all your old bookmarks won't be migrated, because some stupid gtk3 program already created the new file.
I don't have a better idea though.

> -- 
> Alistair Buxton
> a.j.buxton at gmail.com
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> https://mail.xfce.org/mailman/listinfo/xfce4-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20140105/5a11bbde/attachment.html>


More information about the Xfce4-dev mailing list