From 86ab4bc62c95e3be11ee726480306688b237c843 Mon Sep 17 00:00:00 2001 From: Camille Scholtz <admin@camille.sh> Date: Thu, 13 Mar 2025 22:22:14 +0100 Subject: [PATCH] config/Path: Always allow getting of `XDG...` variables --- src/config/Path.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/config/Path.cxx b/src/config/Path.cxx index f3b4d04a1..423390f2a 100644 --- a/src/config/Path.cxx +++ b/src/config/Path.cxx @@ -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); }