[gnome-panel] panel: Stop saving launchers in ~/.gnome2, and use XDG config dir
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] panel: Stop saving launchers in ~/.gnome2, and use XDG config dir
- Date: Mon, 28 Mar 2011 21:12:40 +0000 (UTC)
commit a13331a93f96d0879f664cec9792791375a0f609
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]