about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-11-25 22:08:41 +0000
committerJames Booth <boothj5@gmail.com>2012-11-25 22:08:41 +0000
commit58655a90c356f5b5a712146b8f006ba869be734d (patch)
tree79064360840e9152496954f77f27699bea320fe6
parent270c88fc0f0734a48db9c5e577c1740fa41fda3b (diff)
downloadprofani-tty-58655a90c356f5b5a712146b8f006ba869be734d.tar.gz
Fixed help config file locations
-rw-r--r--src/command.c12
-rw-r--r--src/files.c2
-rw-r--r--src/xdg_base.c4
3 files changed, 13 insertions, 5 deletions
diff --git a/src/command.c b/src/command.c
index facecd62..c463c1ee 100644
--- a/src/command.c
+++ b/src/command.c
@@ -188,7 +188,11 @@ static struct cmd_t main_commands[] =
           "List all current user preference settings.",
           "User preferences are stored at:",
           "",
-          "    ~/.profanity/config",
+          "    $XDG_CONFIG_HOME/profanity/profrc",
+          "",
+          "If the environment variable XDG_CONFIG_HOME is not set the following default if used:",
+          "",
+          "    $HOME/.config/profanity/profrc",
           "",
           "Preference changes made using the various commands take effect immediately,",
           "you will need to restart Profanity for config file edits to take effect.",
@@ -201,7 +205,11 @@ static struct cmd_t main_commands[] =
           "--------------",
           "Change the colour setting as defined in:",
           "",
-          "    ~/.profanity/themes/theme-name",
+          "    $XDG_CONFIG_HOME/profanity/themes/theme-name",
+          "",
+          "If the environment variable XDG_CONFIG_HOME is not set the following default if used:",
+          "",
+          "    $HOME/.config/profanity/themes/theme-name",
           "",
           "Using \"default\" as the theme name will reset to the default colours.",
           NULL } } },
diff --git a/src/files.c b/src/files.c
index ef60cbfb..34d0c98c 100644
--- a/src/files.c
+++ b/src/files.c
@@ -150,6 +150,6 @@ _mkdir_recursive(const char *dir)
             _create_dir(next_dir);
             g_free(next_dir);
         }
-    } 
+    }
 }
 
diff --git a/src/xdg_base.c b/src/xdg_base.c
index 7b8cf28f..b71e39d1 100644
--- a/src/xdg_base.c
+++ b/src/xdg_base.c
@@ -38,7 +38,7 @@ xdg_get_config_home(void)
         g_string_append(default_path, "/.config");
         gchar *result = strdup(default_path->str);
         g_string_free(default_path, TRUE);
-        
+
         return result;
     }
 }
@@ -56,7 +56,7 @@ xdg_get_data_home(void)
         g_string_append(default_path, "/.local/share");
         gchar *result = strdup(default_path->str);
         g_string_free(default_path, TRUE);
-        
+
         return result;
     }
 }