Skip to content

Commit

Permalink
fix: default background is not necessary
Browse files Browse the repository at this point in the history
fix: added --bg to the help output as it was missing

Signed-off-by: Alexis Maiquez <[email protected]>
  • Loading branch information
Almamu committed Dec 24, 2023
1 parent c90cc4d commit e287805
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/WallpaperEngine/Application/CApplicationContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,6 @@ CApplicationContext::CApplicationContext (int argc, char* argv []) {
if (this->settings.general.defaultBackground.empty ()) {
if (optind < argc && strlen (argv [optind]) > 0) {
this->settings.general.defaultBackground = translateBackground (argv [optind]);
} else {
printHelp (argv [0]);
std::exit (0);
}
}

Expand Down Expand Up @@ -310,6 +307,7 @@ void CApplicationContext::printHelp (const char* route) {
sLog.out ("\t--set-property <name=value>\tOverrides the default value of the given property");
sLog.out ("\t--no-fullscreen-pause\tPrevents the background pausing when an app is fullscreen");
sLog.out ("\t--disable-mouse\tDisables mouse interactions");
sLog.out ("\t--bg <background_path/background_id>\tAfter --screen-root uses the specified background only on that screen");
sLog.out (
"\t--scaling <mode>\t Scaling mode for wallpaper. Can be stretch, fit, fill, default. Must be used before wallpaper provided.\n\
\t\t For default wallpaper last specified value will be used.\n\
Expand Down

0 comments on commit e287805

Please sign in to comment.