aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-06-03 07:30:45 +0200
committerGerd Hoffmann <kraxel@redhat.com>2019-06-03 07:30:45 +0200
commitfcdd697bb8bcec04a13de48120a4e0ce4dd2e0dc (patch)
tree764850a9c30ef27a7906d276b21b325b5087183c
parentfe6d9391faf4ada52509306cf9ad23cb7e0253cb (diff)
downloadvconsole-fcdd697bb8bcec04a13de48120a4e0ce4dd2e0dc.tar.gz
rename config file
-rw-r--r--vconsole.c3
1 files changed, 3 insertions, 0 deletions
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);