From fcdd697bb8bcec04a13de48120a4e0ce4dd2e0dc Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 3 Jun 2019 07:30:45 +0200 Subject: rename config file --- vconsole.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vconsole.c b/vconsole.c index e3096c7..28e187a 100644 --- a/vconsole.c +++ b/vconsole.c @@ -20,6 +20,9 @@ static void config_read(void) if (!home) return; config_file = g_strdup_printf("%s/.vconsole", home); + if (access(config_file, F_OK) != 0) + config_file = g_strdup_printf("%s/.config/vconsole.conf", home); + config = g_key_file_new(); g_key_file_load_from_file(config, config_file, G_KEY_FILE_KEEP_COMMENTS, &err); -- cgit