From 482cf9bf0770e7bbf36a58f3868070ce127c3a57 Mon Sep 17 00:00:00 2001
From: Olivier Fourdan <fourdan.olivier@wanadoo.fr>
Date: Thu, 16 Jan 2003 17:47:37 +0000
Subject: [PATCH] Change settings save/load to $HOME/.xfce4/settings/

(Old svn revision: 10839)
---
 mcs-plugin/xfwm4_plugin.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/mcs-plugin/xfwm4_plugin.c b/mcs-plugin/xfwm4_plugin.c
index 8cefe5061..763d4d3e5 100644
--- a/mcs-plugin/xfwm4_plugin.c
+++ b/mcs-plugin/xfwm4_plugin.c
@@ -43,8 +43,9 @@
 
 #define _(String) String
 
-#define CHANNEL "xfwm4"
+#define RCDIR   "settings"
 #define RCFILE  "xfwm4.xml"
+#define CHANNEL "xfwm4"
 #define PLUGIN_NAME "xfwm4"
 
 #define DEFAULT_THEME "microdeck2"
@@ -1492,7 +1493,9 @@ static void create_channel(McsPlugin * mcs_plugin)
     McsSetting *setting;
 
     const gchar *home = g_getenv("HOME");
-    gchar *rcfile = g_strconcat(home, G_DIR_SEPARATOR_S, ".xfce4", G_DIR_SEPARATOR_S, RCFILE, NULL);
+    gchar *rcfile;
+    
+    rcfile = g_strconcat(home, G_DIR_SEPARATOR_S, ".xfce4", G_DIR_SEPARATOR_S, RCDIR, G_DIR_SEPARATOR_S, RCFILE, NULL);
     mcs_manager_add_channel_from_file(mcs_plugin->manager, CHANNEL, rcfile);
     g_free(rcfile);
 
@@ -1730,9 +1733,10 @@ static void create_channel(McsPlugin * mcs_plugin)
 static gboolean write_options(McsPlugin * mcs_plugin)
 {
     const gchar *home = g_getenv("HOME");
-    gchar *rcfile = g_strconcat(home, G_DIR_SEPARATOR_S, ".xfce4", G_DIR_SEPARATOR_S, RCFILE, NULL);
+    gchar *rcfile;
     gboolean result;
 
+    rcfile = g_strconcat(home, G_DIR_SEPARATOR_S, ".xfce4", G_DIR_SEPARATOR_S, RCDIR, G_DIR_SEPARATOR_S, RCFILE, NULL);
     result = mcs_manager_save_channel_to_file(mcs_plugin->manager, CHANNEL, rcfile);
     g_free(rcfile);
 
-- 
GitLab