From 6f5d2fdf953ae8e2687fbd4808babb0bcb73b81c Mon Sep 17 00:00:00 2001 From: Perberos Date: Mon, 30 Jan 2012 12:29:07 -0300 Subject: [PATCH] g_get_user_config_dir() would be better (https://github.com/mate-desktop/mate-panel/issues/8) --- pluma/pluma-dirs.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pluma/pluma-dirs.c b/pluma/pluma-dirs.c index d3fafdd..7f6534d 100755 --- a/pluma/pluma-dirs.c +++ b/pluma/pluma-dirs.c @@ -56,7 +56,11 @@ gchar* pluma_dirs_get_user_config_dir(void) } } #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 return config_dir;