mirror of
https://github.com/hyprwm/hyprpaper.git
synced 2025-10-29 19:33:13 +00:00
config: Return empty string instead of throwing if unable to find default config (#253)
This commit is contained in:
parent
79e0992927
commit
81dc1fe4f0
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user