Context: Do not append .config if XDG_CONFIG_HOME is defined

- Thanks to Julien Rabinow.
This commit is contained in:
Tomas Babej 2020-12-10 23:34:24 -05:00
parent b64e754000
commit f0e34a7ef7
No known key found for this signature in database
GPG key ID: B0747C6578F7D2F5

View file

@ -467,7 +467,7 @@ int Context::initialize (int argc, const char** argv)
const char* env_xdg_config_home = getenv ("XDG_CONFIG_HOME");
if (env_xdg_config_home)
xdg_config_home = format ("{1}/.config", env_xdg_config_home);
xdg_config_home = format ("{1}", env_xdg_config_home);
else
xdg_config_home = format ("{1}/.config", home_dir);