mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-20 05:50:11 +00:00
use XDG_DATA_HOME instead of XDG_CONFIG_HOME.
* xdgmime/xdgmime.c (xdg_mime_init): use XDG_DATA_HOME instead of XDG_CONFIG_HOME.
This commit is contained in:
parent
7ba06b2936
commit
96ba7bb65e
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user