After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 674873 - Support XDG base directory spec for flags
Support XDG base directory spec for flags
Status: RESOLVED FIXED
Product: libgnomekbd
Classification: Core
Component: Config
unspecified
Other Linux
: Normal normal
: ---
Assigned To: libgnomekbd maintainers
Sergey V. Udaltsov
Depends on:
Blocks: 523057
 
 
Reported: 2012-04-26 13:30 UTC by William Jon McCann
Modified: 2012-04-28 12:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description William Jon McCann 2012-04-26 13:30:20 UTC
Currently we read flags icons from HOME
        gtk_icon_theme_append_search_path (ind_config->icon_theme, sp =
                                           g_build_filename (g_get_home_dir
                                                             (),
                                                             ".icons/flags",
                                                             NULL));

We should probably use the XDG base directory standard locations instead.

http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
http://developer.gnome.org/glib/2.32/glib-Miscellaneous-Utility-Functions.html#g-get-user-data-dir
Comment 1 Sergey V. Udaltsov 2012-04-26 13:56:17 UTC
Agreed. Will fix that.
Comment 2 Sergey V. Udaltsov 2012-04-28 12:37:29 UTC
Thanks, fixed! Now it is $XDG_DATA_HOME/icons/flags ($HOME/.local/share/icons/flags)