1
0
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -05:00

Fixed help config file locations

This commit is contained in:
James Booth 2012-11-25 22:08:41 +00:00
parent 270c88fc0f
commit 58655a90c3
3 changed files with 13 additions and 5 deletions

View File

@ -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 } } },

View File

@ -150,6 +150,6 @@ _mkdir_recursive(const char *dir)
_create_dir(next_dir);
g_free(next_dir);
}
}
}
}

View File

@ -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;
}
}