From f80bb320bcb59b5a3b14c2ea37b80d3067b9aadb Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Mon, 8 May 2017 09:43:47 +0200 Subject: [PATCH] Use ~/.config/grafx2 when the XDG_CONFIG_HOME is not set Follow the freedesktop spec. Thanks to skrzyp for noting this important detail. --- src/setup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/setup.c b/src/setup.c index fe403469..a9afabaa 100644 --- a/src/setup.c +++ b/src/setup.c @@ -218,8 +218,7 @@ void Set_config_directory(const char * program_dir, char * config_dir) if (config_parent_dir) Config_SubDir = "grafx2"; else { - // "~/.grafx2" - const char* Config_SubDir = ".grafx2"; + Config_SubDir = ".config/grafx2"; config_parent_dir = getenv("HOME"); } #endif