Commit 96ba7bb6 authored by Jonathan Blandford's avatar Jonathan Blandford

use XDG_DATA_HOME instead of XDG_CONFIG_HOME.


        * xdgmime/xdgmime.c (xdg_mime_init): use XDG_DATA_HOME instead of
        XDG_CONFIG_HOME.
parent 7ba06b29
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment