summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 7b90ee5..6af6cbc 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -6,6 +6,7 @@
#include <QtGui/QApplication>
#include <QDesktopWidget>
#include <QLocale>
+#include <QtDebug>
#include <cstdlib>
#include <iostream>
@@ -33,12 +34,14 @@ int main(int argc, char *argv[]) {
std::string usage(a.translate(
"Console",
- "Usage: vmchooser [ OPTIONS | FILE ]\n\n"
+ "Usage: vmchooser [ OPTIONS ]\n\n"
" -d, --default name of default session\n"
+ " -f, --file direct boot FILE"
" -P, --pool name of the environment\n"
" -p, --path path to vmware .xml files\n"
" -x, --xpath path of X Session .desktop files\n"
" -s, --size window size <width>x<height>\n"
+ " -t, --theme theme\n"
" -b, --pvs show pvs options\n"
" -D, --debug print debug information\n"
" -v, --version print version and exit\n"
@@ -162,6 +165,12 @@ int main(int argc, char *argv[]) {
pool = settings.value("vmchooser_env").toString();
}
+ if (cmdOptions.contains("theme")) {
+ theme = cmdOptions.value("theme");
+ } else if (settings.contains("theme")) {
+ theme = settings.value("theme").toString();
+ }
+
if (cmdOptions.contains("debugMode")) {
debugMode = true;
}
@@ -171,6 +180,9 @@ int main(int argc, char *argv[]) {
QList<Session*> vsessions(VSession::readXmlDir(vSessionPath));
Dialog w;
+
+ w.setTheme();
+
w.setWindowFlags(Qt::FramelessWindowHint);
if (cmdOptions.contains("pvs"))
w.showSettingsPVS();