Gtk bookmarks location

Alistair Buxton a.j.buxton at gmail.com
Sun Jan 5 00:25:25 CET 2014


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.

-- 
Alistair Buxton
a.j.buxton at gmail.com


More information about the Xfce4-dev mailing list