diff options
author | Bastian Wissler | 2008-11-28 18:28:08 +0100 |
---|---|---|
committer | Bastian Wissler | 2008-11-28 18:28:08 +0100 |
commit | 0a22f0e4a0cbc763d18c8a18af891cf4727ef2fc (patch) | |
tree | 508a9cbf57b9e3fd7b5cd06f2d7b6f48e4c1245e /vmchooser/main.cxx | |
parent | vmchooser plugin: * changed version of binary (diff) | |
download | vmchooser-0a22f0e4a0cbc763d18c8a18af891cf4727ef2fc.tar.gz vmchooser-0a22f0e4a0cbc763d18c8a18af891cf4727ef2fc.tar.xz vmchooser-0a22f0e4a0cbc763d18c8a18af891cf4727ef2fc.zip |
vmchooser:
* added 10 secs messge to tell about image start
* fixed bug with waiting on fork()
git-svn-id: http://svn.openslx.org/svn/openslx/openslx-src-tools/vmchooser/trunk@2390 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'vmchooser/main.cxx')
-rw-r--r-- | vmchooser/main.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vmchooser/main.cxx b/vmchooser/main.cxx index 70c2d9d..fb2db46 100644 --- a/vmchooser/main.cxx +++ b/vmchooser/main.cxx @@ -11,7 +11,7 @@ using namespace std; using namespace fltk; - +SWindow* mainwin; /** * MAIN * @@ -62,6 +62,7 @@ int main(int argc, char** argv) { if(opt->getValue("path")!= NULL) { xmlpath = opt->getValue("path"); } + if (xmlpath == NULL) { // Default Path comes here xmlpath = (char *) "/var/lib/vmware/vmconfigs/"; @@ -111,7 +112,7 @@ int main(int argc, char** argv) { delete opt; // just print out version information - helps testing - cout << "virtual machine chooser 0.0.5"<< endl; + cout << "virtual machine chooser 0.0.6"<< endl; if(version) { exit(1); } @@ -129,6 +130,7 @@ int main(int argc, char** argv) { lsessions = readLinSess(lsesspath); SWindow& win = *SWindow::getInstance(width, height); + mainwin = &win; if(lsessions[0] != NULL) { win.set_lin_entries(lsessions); |