mirror of
https://github.com/hyprwm/hyprpaper.git
synced 2025-12-20 04:30:02 +01:00
config: Return empty string instead of throwing if unable to find default config (#253)
This commit is contained in:
parent
79e0992927
commit
81dc1fe4f0
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue