From cfef78bd824fe9220529c87640c7a3ef6d11d860 Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 19 Jul 2012 21:43:41 +0100 Subject: [PATCH] Config file location ~/.profanity/config --- src/common.c | 5 +---- src/preferences.c | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/common.c b/src/common.c index ba4127f9..5bdcbc23 100644 --- a/src/common.c +++ b/src/common.c @@ -39,10 +39,7 @@ void p_slist_free_full(GSList *items, GDestroyNotify free_func) void create_config_directory() { GString *dir = g_string_new(getenv("HOME")); - g_string_append(dir, "/.config"); - _create_dir(dir->str); - - g_string_append(dir, "/profanity"); + g_string_append(dir, "/.profanity"); _create_dir(dir->str); } diff --git a/src/preferences.c b/src/preferences.c index 886d5bef..a384642a 100644 --- a/src/preferences.c +++ b/src/preferences.c @@ -77,7 +77,7 @@ void prefs_load(void) { ac = p_autocomplete_new(); prefs_loc = g_string_new(getenv("HOME")); - g_string_append(prefs_loc, "/.config/profanity/config"); + g_string_append(prefs_loc, "/.profanity/config"); prefs = g_key_file_new(); g_key_file_load_from_file(prefs, prefs_loc->str, G_KEY_FILE_NONE, NULL);