mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Config file location ~/.profanity/config
This commit is contained in:
parent
bf6f596899
commit
cfef78bd82
@ -39,10 +39,7 @@ void p_slist_free_full(GSList *items, GDestroyNotify free_func)
|
|||||||
void create_config_directory()
|
void create_config_directory()
|
||||||
{
|
{
|
||||||
GString *dir = g_string_new(getenv("HOME"));
|
GString *dir = g_string_new(getenv("HOME"));
|
||||||
g_string_append(dir, "/.config");
|
g_string_append(dir, "/.profanity");
|
||||||
_create_dir(dir->str);
|
|
||||||
|
|
||||||
g_string_append(dir, "/profanity");
|
|
||||||
_create_dir(dir->str);
|
_create_dir(dir->str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ void prefs_load(void)
|
|||||||
{
|
{
|
||||||
ac = p_autocomplete_new();
|
ac = p_autocomplete_new();
|
||||||
prefs_loc = g_string_new(getenv("HOME"));
|
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();
|
prefs = g_key_file_new();
|
||||||
g_key_file_load_from_file(prefs, prefs_loc->str, G_KEY_FILE_NONE, NULL);
|
g_key_file_load_from_file(prefs, prefs_loc->str, G_KEY_FILE_NONE, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user