diff options
author | Sebastian Schmelzer | 2011-03-04 18:14:37 +0100 |
---|---|---|
committer | Sebastian Schmelzer | 2011-03-04 18:14:37 +0100 |
commit | 5f450cd48bae1a3c833b93089152f6b308d43c24 (patch) | |
tree | d74ab79170e6b219f64bfb5ac0f9da6e76a4a078 /src/main.cpp | |
parent | Merge branch 'master' of openslx.org:openslx/tools/vmchooser (diff) | |
download | vmchooser-5f450cd48bae1a3c833b93089152f6b308d43c24.tar.gz vmchooser-5f450cd48bae1a3c833b93089152f6b308d43c24.tar.xz vmchooser-5f450cd48bae1a3c833b93089152f6b308d43c24.zip |
* add debug mode
* implement isValid() for vsessions (checks vmdk/vbox existence)
* make use of isValid() and isActive() when filling the session list
* add icons for vbox, lxde, unknown images, failsafe/term
* use exec to guess xsession icon instead of desciption
* FIX: remove newlines/whitespaces from xmlfilter.sh output
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 4d86369..7b90ee5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -40,6 +40,7 @@ int main(int argc, char *argv[]) { " -x, --xpath path of X Session .desktop files\n" " -s, --size window size <width>x<height>\n" " -b, --pvs show pvs options\n" + " -D, --debug print debug information\n" " -v, --version print version and exit\n" " -h, --help print usage information and exit\n" "\nFILE can be a vmware .xml or an X .desktop file\n") @@ -161,6 +162,10 @@ int main(int argc, char *argv[]) { pool = settings.value("vmchooser_env").toString(); } + if (cmdOptions.contains("debugMode")) { + debugMode = true; + } + /* read session files */ QList<Session*> xsessions(XSession::readSessions(xSessionPath)); QList<Session*> vsessions(VSession::readXmlDir(vSessionPath)); |