Return empty string instead of throwing if unable to find default config

This commit is contained in:
Matt Vykol 2025-06-09 16:04:52 -04:00
parent 79e0992927
commit 1f647159b0

View file

@ -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