Post History
For most users, in $HOME/.config/gtk-3.0/bookmarks. Otherwise, if you set the XDG_CONFIG_HOME environment variable (which you can inspect with env), in $XDG_CONFIG_HOME/gtk-3.0/bookmarks. From the...
Answer
#2: Post edited
For normal users, in `$HOME/.config/gtk-3.0/bookmarks`. Otherwise in `$XDG_CONFIG_HOME/gtk-3.0/bookmarks`.Source: https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkbookmarksmanager.c#L82
- For most users, in `$HOME/.config/gtk-3.0/bookmarks`. Otherwise, if you set the `XDG_CONFIG_HOME` environment variable (which you can inspect with `env`), in `$XDG_CONFIG_HOME/gtk-3.0/bookmarks`.
- From [the source code](https://gitlab.gnome.org/GNOME/gtk/-/raw/main/gtk/gtkbookmarksmanager.c):
- ```
- static GFile *
- get_bookmarks_file (void)
- {
- GFile *file;
- char *filename;
- /* Use gtk-3.0's bookmarks file as the format didn't change.
- * Add the 3.0 file format to get_legacy_bookmarks_file() when
- * the format does change.
- */
- filename = g_build_filename (g_get_user_config_dir (), "gtk-3.0", "bookmarks", NULL);
- file = g_file_new_for_path (filename);
- g_free (filename);
- return file;
- }
- ```
- See that as per [`g_get_user_config_dir`](https://docs.gtk.org/glib/func.get_user_config_dir.html) documentation that returns XDG_CONFIG_HOME if set or what XDG specifies, [which is `$HOME/.config`](https://specifications.freedesktop.org/basedir-spec/basedir-spec-0.6.html#variables).