From f19c06feb0b3c62f67cd3c8b2e4c8aab177ffadc Mon Sep 17 00:00:00 2001 From: davc0n <57829860+davc0n@users.noreply.github.com> Date: Sun, 19 Apr 2026 09:18:37 +0200 Subject: [PATCH] config: fix error message if file not found Fixes a wrong path, `/etc/hypr` -> `/etc/xdg`, and specifies the lookup order. --- src/config/ConfigManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 2c200f8..5f590b8 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -186,7 +186,7 @@ static std::expected getMainConfigPath() { if (PATHS.first.has_value()) return PATHS.first.value(); else - return std::unexpected{"Could not find config in HOME, XDG_CONFIG_HOME, XDG_CONFIG_DIRS or /etc/hypr."}; + return std::unexpected{"Could not find config. Searched in order: XDG_CONFIG_HOME, HOME, XDG_CONFIG_DIRS, /etc/xdg"}; } std::expected CConfigManager::resolveConfigPath(std::optional explicitPath) {