[gnome-panel/wip/3.0-freeze-break: 32/32] panel: Stop saving launchers in ~/.gnome2, and use XDG config dir



commit 33c0c5bbbc5a0e32e9776c2e7f5c19cf9b96c785
Author: Vincent Untz <vuntz gnome org>
Date:   Thu Mar 24 14:36:40 2011 +0100

    panel: Stop saving launchers in ~/.gnome2, and use XDG config dir

 gnome-panel/panel-util.c |   14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/gnome-panel/panel-util.c b/gnome-panel/panel-util.c
index 411d009..b208647 100644
--- a/gnome-panel/panel-util.c
+++ b/gnome-panel/panel-util.c
@@ -333,21 +333,11 @@ panel_load_icon (GtkIconTheme  *icon_theme,
 	return retval;
 }
 
-#define PANEL_LAUNCHER_PERSONAL_PATH "panel2.d/default/launchers"
-
 static char *
 panel_launcher_get_personal_path (void)
 {
-        const char *override;
-
-        override = g_getenv ("GNOME22_USER_DIR");
-
-        if (override)
-               return g_build_filename (override,
-                                        PANEL_LAUNCHER_PERSONAL_PATH, NULL);
-        else
-                return g_build_filename (g_get_home_dir (), ".gnome2",
-                                         PANEL_LAUNCHER_PERSONAL_PATH, NULL);
+	return g_build_filename (g_get_user_config_dir (),
+				 "gnome-panel", "launchers", NULL);
 }
 
 gboolean



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