Skip to content

Commit

Permalink
fix: fix one of the silliest misinterpretations of code i have ever made
Browse files Browse the repository at this point in the history
  • Loading branch information
amadalusia committed Sep 20, 2024
1 parent e5d443f commit 0e57a27
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/config/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 0e57a27

Please sign in to comment.