[gnome-commander] Move gnome commander config folder into ~/.config/gnome-commander



commit 43ea5631f922796134b98c3ec4693964b3c239e3
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Mon Mar 4 21:09:28 2019 +0100

    Move gnome commander config folder into ~/.config/gnome-commander

 src/main.cc | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/src/main.cc b/src/main.cc
index a9a677ac..bfc6a5bf 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -136,7 +136,19 @@ int main (int argc, char *argv[])
     gdk_rgb_init ();
     gnome_vfs_init ();
 
-    gchar *conf_dir = g_build_filename (g_get_home_dir (), "." PACKAGE, NULL);
+
+    // ToDo: Remove somewhen after 1.10 release:
+    ///////////////////////////////////
+    auto userConfigDirOld = g_build_filename (g_get_home_dir (), "." PACKAGE, NULL);
+
+    if (is_dir_existing(userConfigDirOld) == 1)
+    {
+        auto userPluginConfigDirNew = get_package_config_dir();
+        move_old_to_new_location(userConfigDirOld, userPluginConfigDirNew);
+    }
+    ///////////////////////////////////
+
+    gchar *conf_dir = get_package_config_dir();
     create_dir_if_needed (conf_dir);
     g_free (conf_dir);
 


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