From 0e57a27ba986c55a04e77965e24dc2fdcdc6f5ce Mon Sep 17 00:00:00 2001 From: Artur Manuel Date: Fri, 20 Sep 2024 17:08:13 +0100 Subject: [PATCH] fix: fix one of the silliest misinterpretations of code i have ever made --- src/config/ConfigManager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 6c382a7346b..0f153fed988 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -683,9 +683,11 @@ std::string CConfigManager::getMainConfigPath() { if (!g_pCompositor->explicitConfigPath.empty()) return g_pCompositor->explicitConfigPath; - if (const auto CFG_ENV = getenv("HYPRLAND_CONFIG"); CFG_ENV); + if (const auto CFG_ENV = getenv("HYPRLAND_CONFIG"); CFG_ENV) { + return CFG_ENV; + }; - Debug::log(DEBUG, "Seems as if HYPRLAND_CONFIG isn't set, let's see what we can do with HOME."); + Debug::log(TRACE, "Seems as if HYPRLAND_CONFIG isn't set, let's see what we can do with HOME."); static const auto paths = Hyprutils::Path::findConfig(ISDEBUG ? "hyprlandd" : "hyprland"); if (paths.first.has_value()) {