g_get_user_config_dir() would be better (https://github.com/mate-desktop/mate-panel/issues/8)
This commit is contained in:
parent
ffdb44194e
commit
6f5d2fdf95
|
@ -56,7 +56,11 @@ gchar* pluma_dirs_get_user_config_dir(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
config_dir = g_build_filename(g_get_user_config_dir(), "pluma", NULL);
|
#if GLIB_CHECK_VERSION(2, 6, 0)
|
||||||
|
config_dir = g_build_filename(g_get_user_config_dir(), "pluma", NULL);
|
||||||
|
#else // glib version < 2.6.0
|
||||||
|
config_dir = g_build_filename(g_get_home_dir(), ".config", "pluma", NULL);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return config_dir;
|
return config_dir;
|
||||||
|
|
Loading…
Reference in New Issue