config: Return empty string instead of throwing if unable to find default config (#253)

This commit is contained in:
Matt Vykol 2025-06-10 03:19:18 -04:00 committed by GitHub
parent 79e0992927
commit 81dc1fe4f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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