diff --git a/src/WallpaperEngine/Application/CApplicationContext.cpp b/src/WallpaperEngine/Application/CApplicationContext.cpp index 3084ac1..e1d8365 100644 --- a/src/WallpaperEngine/Application/CApplicationContext.cpp +++ b/src/WallpaperEngine/Application/CApplicationContext.cpp @@ -26,8 +26,11 @@ CApplicationContext::CApplicationContext (int argc, char* argv []) : backgroundGroup.add_argument ("background id") .help ("The background to use as default for screens with no background specified") + .default_value ("") .action([this](const std::string& value) -> void { - this->settings.general.defaultBackground = translateBackground (value); + if (!value.empty()) { + this->settings.general.defaultBackground = translateBackground (value); + } }); backgroundMode.add_argument ("-w", "--window")