diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/main.cpp b/src/main.cpp index 8df19e2..59c886b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -62,7 +62,7 @@ int main(int argc, char *argv[]) ScreenSetup::inst()->setCenteredClone(); } else if (CommandLine::autoSetup()) { ScreenMode mode; - ScreenSetup::inst()->setDefaultMode(CommandLine::testMode(), mode); + ScreenSetup::inst()->setDefaultMode(mode); } else { ScreenSetup::inst()->getCurrentMode(); } @@ -98,12 +98,10 @@ static void parseCommandLine(const QCoreApplication &a) QCommandLineOption oBackground(QStringList() << "b" << "background", QCoreApplication::translate("main", "Keep running in background and show GUI when number of screens changes.")); parser.addOption(oBackground); - /* // Test mode -- pretend to do setup QCommandLineOption oTest(QStringList() << "t" << "test", QCoreApplication::translate("main", "Test mode, don't actually apply any changes.")); - parser.addOption(oTest); TODO Not fully implemented so disabled for now - */ + parser.addOption(oTest); // Wakeup beamergui daemon via DBus connect QCommandLineOption oWakeup(QStringList() << "w" << "wakeup", QCoreApplication::translate("main", "Connect to system bus to trigger wakeup of wainting beamergui.")); @@ -113,10 +111,8 @@ static void parseCommandLine(const QCoreApplication &a) QCoreApplication::translate("main", "Set all outputs to clone mode. If size differs, center outputs according to largest output.")); parser.addOption(oCenter); // PARSE - parser.process(a); - /* + parser.process(a); _testMode = parser.isSet(oTest); - */ _autoSetup = parser.isSet(oAutoSetup); _showGui = parser.isSet(oShowGui); _backgroundMode = parser.isSet(oBackground); |