From 1f647159b01c980ee5b249fb144997d77dd79c4f Mon Sep 17 00:00:00 2001 From: Matt Vykol <6185932+mvykol@users.noreply.github.com> Date: Mon, 9 Jun 2025 16:04:52 -0400 Subject: [PATCH] Return empty string instead of throwing if unable to find default config --- 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