From 81dc1fe4f05305319bb586a0eb6f6004a1476832 Mon Sep 17 00:00:00 2001 From: Matt Vykol <6185932+mvykol@users.noreply.github.com> Date: Tue, 10 Jun 2025 03:19:18 -0400 Subject: [PATCH] config: Return empty string instead of throwing if unable to find default config (#253) --- 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 6e6901a..48668db 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -214,7 +214,7 @@ std::string CConfigManager::getMainConfigPath() { if (paths.first.has_value()) return paths.first.value(); else - throw std::runtime_error("Could not find config in HOME, XDG_CONFIG_HOME, XDG_CONFIG_DIRS or /etc/hypr."); + return ""; } // trim from both ends