summaryrefslogtreecommitdiff
path: root/capplets/common/mate-theme-info.c
diff options
context:
space:
mode:
Diffstat (limited to 'capplets/common/mate-theme-info.c')
-rw-r--r--capplets/common/mate-theme-info.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/capplets/common/mate-theme-info.c b/capplets/common/mate-theme-info.c
index b15abafe..39d721a2 100644
--- a/capplets/common/mate-theme-info.c
+++ b/capplets/common/mate-theme-info.c
@@ -637,7 +637,12 @@ read_current_cursor_font (void)
gchar *dir_name;
struct dirent *file_dirent;
- dir_name = g_build_filename (g_get_home_dir (), ".config/mate/share/cursor-fonts", NULL);
+ #if GLIB_CHECK_VERSION(2, 6, 0)
+ dir_name = g_build_filename(g_get_user_config_dir(), "mate", "share", "cursor-fonts", NULL);
+ #else // glib version < 2.6.0
+ dir_name = g_build_filename(g_get_home_dir(), ".config", "mate", "share", "cursor-fonts", NULL);
+ #endif
+
if (! g_file_test (dir_name, G_FILE_TEST_EXISTS)) {
g_free (dir_name);
return NULL;