summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Schmelzer2011-05-12 17:58:15 +0200
committerSebastian Schmelzer2011-05-12 17:58:15 +0200
commitccb6d60b0050b768c3fa1df262be23dd9e799ea6 (patch)
tree51cb4e7a454f71580505f002a69617a916610e0b
parentmissing long option (diff)
downloadvmchooser-ccb6d60b0050b768c3fa1df262be23dd9e799ea6.tar.gz
vmchooser-ccb6d60b0050b768c3fa1df262be23dd9e799ea6.tar.xz
vmchooser-ccb6d60b0050b768c3fa1df262be23dd9e799ea6.zip
change conf path to /etc/vmchooser/vmchooser.conf
add missing option to usage
-rw-r--r--src/globals.h2
-rw-r--r--src/main.cpp5
2 files changed, 3 insertions, 4 deletions
diff --git a/src/globals.h b/src/globals.h
index 0a40059..b36c959 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -5,7 +5,7 @@
#define VMCHOOSER_PLUGIN_PATH "/opt/openslx/plugin-repo/vmchooser"
#define VMCHOOSER_BIN_PATH "/var/opt/openslx/bin"
-#define VMCHOOSER_ETC_BASE_PATH "/etc/opt/openslx/plugins/vmchooser"
+#define VMCHOOSER_ETC_BASE_PATH "/etc/vmchooser"
#define VMCHOOSER_VMPATH "/var/lib/virt"
#define VMCHOOSER_THEME_BASE "/usr/local/share/vmchooser/themes"
diff --git a/src/main.cpp b/src/main.cpp
index 17e84e4..1fe6401 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -36,6 +36,7 @@ int main(int argc, char *argv[]) {
"Console",
"Usage: vmchooser [ OPTIONS ]\n\n"
" -d, --default name of default session\n"
+ " -c, --config alternative config file\n"
" -f, --file direct boot FILE\n"
" -P, --pool name of the environment\n"
" -p, --path path to vmware .xml files\n"
@@ -161,9 +162,7 @@ int main(int argc, char *argv[]) {
pool = cmdOptions.value("pool");
} else if (settings.contains("pool")) {
pool = settings.value("pool").toString();
- } else if (settings.contains("vmchooser_env")) {
- pool = settings.value("vmchooser_env").toString();
- }
+ }
if (cmdOptions.contains("theme")) {
theme = cmdOptions.value("theme");