aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@0d.be>2009-06-17 16:01:52 +0800
committerFrédéric Péters <fpeters@0d.be>2009-07-21 23:36:44 +0800
commite1fa17399fc137a508f195aa6976b5f32189de96 (patch)
treee70585581a0e219d5b6327719ddfe7e5d52aef92 /libempathy
parent6af3cdc16ef3e4a35524b4e076e9c8c99469814c (diff)
downloadgsoc2013-empathy-e1fa17399fc137a508f195aa6976b5f32189de96.tar
gsoc2013-empathy-e1fa17399fc137a508f195aa6976b5f32189de96.tar.gz
gsoc2013-empathy-e1fa17399fc137a508f195aa6976b5f32189de96.tar.bz2
gsoc2013-empathy-e1fa17399fc137a508f195aa6976b5f32189de96.tar.lz
gsoc2013-empathy-e1fa17399fc137a508f195aa6976b5f32189de96.tar.xz
gsoc2013-empathy-e1fa17399fc137a508f195aa6976b5f32189de96.tar.zst
gsoc2013-empathy-e1fa17399fc137a508f195aa6976b5f32189de96.zip
Put configuration data in XDG_CONFIG_DIRS (GNOME bug 494007)
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-chatroom-manager.c2
-rw-r--r--libempathy/empathy-contact-groups.c4
-rw-r--r--libempathy/empathy-status-presets.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/libempathy/empathy-chatroom-manager.c b/libempathy/empathy-chatroom-manager.c
index 1ce7a6e5d..940b56220 100644
--- a/libempathy/empathy-chatroom-manager.c
+++ b/libempathy/empathy-chatroom-manager.c
@@ -409,7 +409,7 @@ empathy_chatroom_manager_constructor (GType type,
/* Set the default file path */
gchar *dir;
- dir = g_build_filename (g_get_home_dir (), ".gnome2", PACKAGE_NAME, NULL);
+ dir = g_build_filename (g_get_user_config_dir (), PACKAGE_NAME, NULL);
if (!g_file_test (dir, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR))
g_mkdir_with_parents (dir, S_IRUSR | S_IWUSR | S_IXUSR);
diff --git a/libempathy/empathy-contact-groups.c b/libempathy/empathy-contact-groups.c
index a9040f2df..22d81d051 100644
--- a/libempathy/empathy-contact-groups.c
+++ b/libempathy/empathy-contact-groups.c
@@ -67,7 +67,7 @@ empathy_contact_groups_get_all (void)
groups = NULL;
}
- dir = g_build_filename (g_get_home_dir (), ".gnome2", PACKAGE_NAME, NULL);
+ dir = g_build_filename (g_get_user_config_dir (), PACKAGE_NAME, NULL);
file_with_path = g_build_filename (dir, CONTACT_GROUPS_XML_FILENAME, NULL);
g_free (dir);
@@ -190,7 +190,7 @@ contact_groups_file_save (void)
gchar *dir;
gchar *file;
- dir = g_build_filename (g_get_home_dir (), ".gnome2", PACKAGE_NAME, NULL);
+ dir = g_build_filename (g_get_user_config_dir (), PACKAGE_NAME, NULL);
g_mkdir_with_parents (dir, S_IRUSR | S_IWUSR | S_IXUSR);
file = g_build_filename (dir, CONTACT_GROUPS_XML_FILENAME, NULL);
g_free (dir);
diff --git a/libempathy/empathy-status-presets.c b/libempathy/empathy-status-presets.c
index 135212cc5..1fa991b0b 100644
--- a/libempathy/empathy-status-presets.c
+++ b/libempathy/empathy-status-presets.c
@@ -176,7 +176,7 @@ empathy_status_presets_get_all (void)
presets = NULL;
}
- dir = g_build_filename (g_get_home_dir (), ".gnome2", PACKAGE_NAME, NULL);
+ dir = g_build_filename (g_get_user_config_dir (), PACKAGE_NAME, NULL);
g_mkdir_with_parents (dir, S_IRUSR | S_IWUSR | S_IXUSR);
file_with_path = g_build_filename (dir, STATUS_PRESETS_XML_FILENAME, NULL);
g_free (dir);
@@ -203,7 +203,7 @@ status_presets_file_save (void)
count[i] = 0;
}
- dir = g_build_filename (g_get_home_dir (), ".gnome2", PACKAGE_NAME, NULL);
+ dir = g_build_filename (g_get_user_config_dir (), PACKAGE_NAME, NULL);
g_mkdir_with_parents (dir, S_IRUSR | S_IWUSR | S_IXUSR);
file = g_build_filename (dir, STATUS_PRESETS_XML_FILENAME, NULL);
g_free (dir);