diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-06-03 07:30:45 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-06-03 07:30:45 +0200 |
commit | fcdd697bb8bcec04a13de48120a4e0ce4dd2e0dc (patch) | |
tree | 764850a9c30ef27a7906d276b21b325b5087183c | |
parent | fe6d9391faf4ada52509306cf9ad23cb7e0253cb (diff) | |
download | vconsole-fcdd697bb8bcec04a13de48120a4e0ce4dd2e0dc.tar.gz |
rename config file
-rw-r--r-- | vconsole.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |