diff options
author | Jonathan Blandford <jrb@src.gnome.org> | 2003-07-22 19:39:10 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2003-07-22 19:39:10 +0000 |
commit | 96ba7bb65e02858e08f78922f4d837ac7d1a65a0 (patch) | |
tree | b47499ba875817672026e0db634d8ba51887dd1b /gtk/xdgmime | |
parent | 7ba06b293697455d4e3aed079a479c153be70061 (diff) | |
download | gtk+-96ba7bb65e02858e08f78922f4d837ac7d1a65a0.tar.gz |
use XDG_DATA_HOME instead of XDG_CONFIG_HOME.
* xdgmime/xdgmime.c (xdg_mime_init): use XDG_DATA_HOME instead of
XDG_CONFIG_HOME.
Diffstat (limited to 'gtk/xdgmime')
-rw-r--r-- | gtk/xdgmime/xdgmime.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/xdgmime/xdgmime.c b/gtk/xdgmime/xdgmime.c index a8ea4d383d..ab286b9820 100644 --- a/gtk/xdgmime/xdgmime.c +++ b/gtk/xdgmime/xdgmime.c @@ -63,7 +63,7 @@ xdg_mime_init (void) if (initted == 0) { - const char *xdg_config_home; + const char *xdg_data_home; const char *xdg_data_dirs; const char *ptr; @@ -73,10 +73,10 @@ xdg_mime_init (void) /* We look for globs and magic files based upon the XDG Base Directory * Specification */ - xdg_config_home = getenv ("XDG_CONFIG_HOME"); - if (xdg_config_home) + xdg_data_home = getenv ("XDG_DATA_HOME"); + if (xdg_data_home) { - _xdg_mime_init_from_directory (xdg_config_home); + _xdg_mime_init_from_directory (xdg_data_home); } else { |