config/Path: Always allow getting of XDG...
variables
This commit is contained in:
parent
a34bf3588e
commit
86ab4bc62c
@ -77,7 +77,6 @@ GetVariable(std::string_view name)
|
||||
{
|
||||
if (name == "HOME"sv)
|
||||
return GetConfiguredHome();
|
||||
#ifdef USE_XDG
|
||||
else if (name == "XDG_CONFIG_HOME"sv)
|
||||
return GetUserConfigDir();
|
||||
else if (name == "XDG_MUSIC_DIR"sv)
|
||||
@ -86,7 +85,6 @@ GetVariable(std::string_view name)
|
||||
return GetUserCacheDir();
|
||||
else if (name == "XDG_RUNTIME_DIR"sv)
|
||||
return GetUserRuntimeDir();
|
||||
#endif
|
||||
else
|
||||
throw FmtRuntimeError("Unknown variable: {:?}", name);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user