Skip to content

Commit

Permalink
MythWelcome: Add missing platform command line parameter
Browse files Browse the repository at this point in the history
- and a couple of other window/display related options

Refs #266
  • Loading branch information
mark-kendall committed Nov 15, 2020
1 parent 85d78e9 commit 22fd974
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion mythtv/programs/mythwelcome/commandlineparser.cpp
Expand Up @@ -20,7 +20,10 @@ void MythWelcomeCommandLineParser::LoadArguments(void)
addVersion();
addLogging();
addDisplay();

addPlatform();
addWindowed();
addGeometry();
addMouse();
add(QStringList{"-s", "--setup"}, "setup", false,
"Run setup for mythshutdown.", "");
}
Expand Down
7 changes: 5 additions & 2 deletions mythtv/programs/mythwelcome/main.cpp
Expand Up @@ -71,6 +71,9 @@ int main(int argc, char **argv)
if (retval != GENERIC_EXIT_OK)
return retval;

if (!cmdline.toString("geometry").isEmpty())
MythMainWindow::ParseGeometryOverride(cmdline.toString("geometry"));

if (cmdline.toBool("setup"))
bShowSettings = true;

Expand Down Expand Up @@ -119,7 +122,7 @@ int main(int argc, char **argv)

initKeys();
// Provide systemd ready notification (for type=notify units)
mw_sd_notify("READY=1");
mw_sd_notify("READY=1")

MythScreenStack *mainStack = mainWindow->GetMainStack();

Expand Down Expand Up @@ -147,7 +150,7 @@ int main(int argc, char **argv)
block.exec();
}

mw_sd_notify("STOPPING=1\nSTATUS=Exiting");
mw_sd_notify("STOPPING=1\nSTATUS=Exiting")
DestroyMythMainWindow();

delete gContext;
Expand Down

0 comments on commit 22fd974

Please sign in to comment.