diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/main.cpp b/src/main.cpp index 1afd052..3cf589f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -39,6 +39,7 @@ int main(int argc, char *argv[]) { " -c, --config alternative config file\n" " -l, --locations location id(s), space separated\n" " --location-mode how to treat entries for this location (IGNORE, BUMP or EXCLUSIVE)\n" + " --exam-mode enable exam mode\n" " -P, --pool one or more pool names to display (comma separated)\n" " -f, --file direct boot .desktop file\n" " -x, --xpath path of X Session .desktop files\n" @@ -264,7 +265,11 @@ int main(int argc, char *argv[]) { SLOT(addSessionsAfterDownload(QNetworkReply*))); // read xml and add items later - httpxmldownloader.makeRequest(urlBase + "list.php", locationIds); + if (cmdOptions.contains("exam-mode")) { + httpxmldownloader.makeRequest(urlBase + "list.php?exams=exam-mode", locationIds); + } else { + httpxmldownloader.makeRequest(urlBase + "list.php", locationIds); + } /* DOWNLOAD NEWS */ HttpXmlDownloader news_downloader; @@ -297,12 +302,6 @@ int main(int argc, char *argv[]) { w.addItems(xsessions, 0); } - QSettings SLXsettings(OPENSLXCONFIG, QSettings::NativeFormat); - if (SLXsettings.contains("SLX_BENCHMARK_VM")) { - QString vm = SLXsettings.value("SLX_BENCHMARK_VM").toString(); - vm.remove('\''); - w.startSession(vm); - } w.show(); if (autostart_uuid != "") { |