From 58655a90c356f5b5a712146b8f006ba869be734d Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 25 Nov 2012 22:08:41 +0000 Subject: Fixed help config file locations --- src/command.c | 12 ++++++++++-- src/files.c | 2 +- src/xdg_base.c | 4 ++-- 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; } } -- cgit 1.4.1-2-gfad0