From 5f450cd48bae1a3c833b93089152f6b308d43c24 Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Fri, 4 Mar 2011 18:14:37 +0100 Subject: * 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 --- src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main.cpp') 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 x\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 xsessions(XSession::readSessions(xSessionPath)); QList vsessions(VSession::readXmlDir(vSessionPath)); -- cgit v1.2.3-55-g7522