From ecd8a153901507f5d210d6f85103693ef81d49c3 Mon Sep 17 00:00:00 2001 From: Perberos Date: Mon, 30 Jan 2012 12:44:31 -0300 Subject: g_get_user_config_dir() would be better (https://github.com/mate-desktop/mate-panel/issues/8) --- plugins/font/gsd-font-manager.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugins') 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) { -- cgit v1.2.1