[gnome-commander] ".gnome-commander" -> "." PACKAGE



commit 1beb2acddc12147a52f0239ed731cfd084d40198
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sun Jun 6 19:13:18 2010 +0200

    ".gnome-commander" -> "." PACKAGE

 src/gnome-cmd-data.cc          |   12 ++++++------
 src/gnome-cmd-python-plugin.cc |    2 +-
 src/main.cc                    |    2 +-
 src/plugin_manager.cc          |    2 +-
 4 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index 649d1b0..17f5082 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -141,7 +141,7 @@ inline void write(XML::xstream &xml, GnomeCmdCon *con, const gchar *name)
 
 inline void save_connections (const gchar *fname)
 {
-    gchar *path = g_build_filename (g_get_home_dir (), ".gnome-commander", fname, NULL);
+    gchar *path = g_build_filename (g_get_home_dir (), "." PACKAGE, fname, NULL);
     FILE  *fd = fopen (path, "w");
 
     if (fd)
@@ -174,7 +174,7 @@ inline void save_connections (const gchar *fname)
 
 inline void save_devices (const gchar *fname)
 {
-    gchar *path = g_build_filename (g_get_home_dir (), ".gnome-commander", fname, NULL);
+    gchar *path = g_build_filename (g_get_home_dir (), "." PACKAGE, fname, NULL);
     FILE *fd = fopen (path, "w");
 
     if (fd)
@@ -219,7 +219,7 @@ inline void save_devices (const gchar *fname)
 
 inline void save_fav_apps (const gchar *fname)
 {
-    gchar *path = g_build_filename (g_get_home_dir (), ".gnome-commander", fname, NULL);
+    gchar *path = g_build_filename (g_get_home_dir (), "." PACKAGE, fname, NULL);
     FILE *fd = fopen (path, "w");
 
     if (fd)
@@ -263,7 +263,7 @@ inline gboolean load_connections (const gchar *fname)
 {
     guint prev_ftp_cons_no = g_list_length (gnome_cmd_con_list_get_all_ftp (gnome_cmd_data.priv->con_list));
 
-    gchar *path = g_build_filename (g_get_home_dir (), ".gnome-commander", fname, NULL);
+    gchar *path = g_build_filename (g_get_home_dir (), "." PACKAGE, fname, NULL);
     FILE  *fd = fopen (path, "r");
 
     if (fd)
@@ -605,7 +605,7 @@ inline void load_vfs_auto_devices ()
 
 inline void load_devices (const gchar *fname)
 {
-    gchar *path = g_build_filename (g_get_home_dir (), ".gnome-commander", fname, NULL);
+    gchar *path = g_build_filename (g_get_home_dir (), "." PACKAGE, fname, NULL);
     FILE *fd = fopen (path, "r");
 
     if (fd)
@@ -655,7 +655,7 @@ inline void load_devices (const gchar *fname)
 inline void load_fav_apps (const gchar *fname)
 {
     gnome_cmd_data.priv->fav_apps = NULL;
-    gchar *path = g_build_filename (g_get_home_dir (), ".gnome-commander", fname, NULL);
+    gchar *path = g_build_filename (g_get_home_dir (), "." PACKAGE, fname, NULL);
     FILE *fd = fopen (path, "r");
     if (fd)
     {
diff --git a/src/gnome-cmd-python-plugin.cc b/src/gnome-cmd-python-plugin.cc
index c4bbe89..3f7dcd6 100644
--- a/src/gnome-cmd-python-plugin.cc
+++ b/src/gnome-cmd-python-plugin.cc
@@ -128,7 +128,7 @@ static void scan_plugins_in_dir (const gchar *dpath)
 
 void python_plugin_manager_init ()
 {
-    gchar *user_dir = g_build_filename (g_get_home_dir(), ".gnome-commander/plugins", NULL);
+    gchar *user_dir = g_build_filename (g_get_home_dir(), "." PACKAGE "/plugins", NULL);
     gchar *set_plugin_path = g_strdup_printf("sys.path = ['%s', '%s'] + sys.path", user_dir, PLUGIN_DIR);
 
     DEBUG('p', "User plugin dir: %s\n", user_dir);
diff --git a/src/main.cc b/src/main.cc
index 13b30e0..2bfe195 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -139,7 +139,7 @@ int main (int argc, char *argv[])
     gdk_rgb_init ();
     gnome_vfs_init ();
 
-    gchar *conf_dir = g_build_filename (g_get_home_dir (), ".gnome-commander", NULL);
+    gchar *conf_dir = g_build_filename (g_get_home_dir (), "." PACKAGE, NULL);
     create_dir_if_needed (conf_dir);
     g_free (conf_dir);
 
diff --git a/src/plugin_manager.cc b/src/plugin_manager.cc
index 6e333bc..94386ee 100644
--- a/src/plugin_manager.cc
+++ b/src/plugin_manager.cc
@@ -211,7 +211,7 @@ void plugin_manager_init ()
     }
 
     // find user plugins
-    gchar *user_dir = g_build_filename (g_get_home_dir (), ".gnome-commander/plugins", NULL);
+    gchar *user_dir = g_build_filename (g_get_home_dir (), "." PACKAGE "/plugins", NULL);
     create_dir_if_needed (user_dir);
     scan_plugins_in_dir (user_dir);
     g_free (user_dir);



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