[gnac] Stored user profiles in XDG_DATA_HOME



commit 7cccdb0b0f88965f4d29be5fadf89b45e13a0ec6
Author: Benoît Dupasquier <bdupasqu src gnome org>
Date:   Fri Apr 8 21:55:34 2011 +0100

    Stored user profiles in XDG_DATA_HOME

 src/profiles/gnac-profiles-manager.c    |    4 ++--
 src/profiles/gnac-profiles-properties.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/profiles/gnac-profiles-manager.c b/src/profiles/gnac-profiles-manager.c
index 83f2334..be520e0 100644
--- a/src/profiles/gnac-profiles-manager.c
+++ b/src/profiles/gnac-profiles-manager.c
@@ -233,8 +233,8 @@ gnac_profiles_mgr_get_profiles_dir(void)
   GFile  *dir;
   GError *error = NULL;
 
-  saved_profiles_dir = g_build_filename(g_get_home_dir(),
-      ".gnac", "profiles", NULL);
+  saved_profiles_dir = g_build_filename(g_get_user_data_dir(),
+      "gnac", "profiles", NULL);
   dir = g_file_new_for_path(saved_profiles_dir);
   if (!g_file_query_exists(dir, NULL)) {
     if (!g_file_make_directory_with_parents(dir, NULL, &error)) {
diff --git a/src/profiles/gnac-profiles-properties.c b/src/profiles/gnac-profiles-properties.c
index 225ec6e..074876a 100644
--- a/src/profiles/gnac-profiles-properties.c
+++ b/src/profiles/gnac-profiles-properties.c
@@ -138,8 +138,8 @@ gnac_profiles_properties_init(void)
   profiles_properties_builder = gtk_builder_new(); 
   formats = g_hash_table_new(g_str_hash,g_str_equal);
   
-  saved_profiles_dir = g_build_filename(g_get_home_dir(),
-      ".gnac", "profiles", NULL);
+  saved_profiles_dir = g_build_filename(g_get_user_data_dir(),
+      "gnac", "profiles", NULL);
 
   if (!gtk_builder_add_from_file(profiles_properties_builder, 
           PKGDATADIR "/profiles/gnac-profiles-properties.xml", &error))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]