summaryrefslogtreecommitdiffstats
path: root/src/vsession.cpp
diff options
context:
space:
mode:
authorJan Darmochwal2010-10-07 14:53:20 +0200
committerJan Darmochwal2010-10-07 14:53:20 +0200
commit3932297962d7394574346c016c38ef5103dc5a7c (patch)
tree2a1f8d128d1e87965fea6be41943717b3cddce65 /src/vsession.cpp
parentrecursive globbing in VSession::readXmlDir() (diff)
downloadvmchooser-3932297962d7394574346c016c38ef5103dc5a7c.tar.gz
vmchooser-3932297962d7394574346c016c38ef5103dc5a7c.tar.xz
vmchooser-3932297962d7394574346c016c38ef5103dc5a7c.zip
Support for command line arguments and conf files
* anyoption has been replaced by getopt * replaces huge unmaintainable .cpp and .h files from an external source by standard POSIX library calls * I would suggest using Boost.Program_options if cross-platform support is needed * support user/global configuration file
Diffstat (limited to 'src/vsession.cpp')
-rw-r--r--src/vsession.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vsession.cpp b/src/vsession.cpp
index 249594a..f3d2604 100644
--- a/src/vsession.cpp
+++ b/src/vsession.cpp
@@ -186,7 +186,6 @@ bool VSession::run() const {
// TODO: save session
return true;
}
-
return false;
}
@@ -212,6 +211,7 @@ bool VSession::run() const {
tmpfile.setAutoRemove(false);
// TODO: put script name in constant
+ // TODO: check if run-virt.sh exists
QString runVmScript(QString(VMCHOOSER_BIN_PATH) + "run-virt.sh");
if (QProcess::startDetached(runVmScript, QStringList(tmpfile.fileName()))) {
// TODO: save session