summaryrefslogtreecommitdiff
path: root/plugins/font
diff options
context:
space:
mode:
authorPerberos <[email protected]>2012-01-30 12:44:31 -0300
committerPerberos <[email protected]>2012-01-30 12:44:31 -0300
commitecd8a153901507f5d210d6f85103693ef81d49c3 (patch)
treebb109eeaa1cecc6c12ab7bef5def925ee4ee7051 /plugins/font
parenteed429dc4b0c84be8c417f87bee1a25c14fdcb0f (diff)
downloadmate-settings-daemon-ecd8a153901507f5d210d6f85103693ef81d49c3.tar.bz2
mate-settings-daemon-ecd8a153901507f5d210d6f85103693ef81d49c3.tar.xz
g_get_user_config_dir() would be better (https://github.com/mate-desktop/mate-panel/issues/8)
Diffstat (limited to 'plugins/font')
-rw-r--r--plugins/font/gsd-font-manager.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/font/gsd-font-manager.c b/plugins/font/gsd-font-manager.c
index 93d9279..3db06ce 100644
--- a/plugins/font/gsd-font-manager.c
+++ b/plugins/font/gsd-font-manager.c
@@ -134,7 +134,11 @@ load_xcursor_theme (MateConfClient *client)
static char* setup_dir(const char* font_dir_name, gboolean create)
{
- char* font_dir = g_build_path(G_DIR_SEPARATOR_S, g_get_home_dir(), ".config", "mate", "share", font_dir_name, NULL);
+ #if GLIB_CHECK_VERSION(2, 6, 0)
+ char* font_dir = g_build_path(G_DIR_SEPARATOR_S, g_get_user_config_dir(), "mate", "share", font_dir_name, NULL);
+ #else // glib version < 2.6.0
+ char* font_dir = g_build_path(G_DIR_SEPARATOR_S, g_get_home_dir(), ".config", "mate", "share", font_dir_name, NULL);
+ #endif
if (create)
{