Context: Do not append .config if XDG_CONFIG_HOME is defined
- Thanks to Julien Rabinow.
This commit is contained in:
@@ -467,7 +467,7 @@ int Context::initialize (int argc, const char** argv)
|
|||||||
const char* env_xdg_config_home = getenv ("XDG_CONFIG_HOME");
|
const char* env_xdg_config_home = getenv ("XDG_CONFIG_HOME");
|
||||||
|
|
||||||
if (env_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
|
else
|
||||||
xdg_config_home = format ("{1}/.config", home_dir);
|
xdg_config_home = format ("{1}/.config", home_dir);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user