summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index c3ca684..8d26c14 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -44,6 +44,9 @@ int main(int argc, char *argv[]) {
" -f, --file direct boot .desktop file\n"
" -x, --xpath path of X Session .desktop files\n"
" -u, --url url of vmware .xml file\n"
+ " --url-list url of vms' list as .xml file\n"
+ " --url-news url of the news to display\n"
+ " --url-help url of the help to display\n"
" -s, --size window size <width>x<height>\n"
" -t, --theme theme\n"
" --template-mode how to treat template entries (IGNORE or BUMP)\n"
@@ -171,6 +174,22 @@ int main(int argc, char *argv[]) {
g_urlBase += "/";
}
}
+ if (cmdOptions.contains("url-list")) {
+ g_urlList = cmdOptions.value("url-list");
+ } else {
+ // if not explictly specified, use the old scheme
+ g_urlList = g_urlBase + "list";
+ }
+ if (cmdOptions.contains("url-news")) {
+ g_urlNews = cmdOptions.value("url-news");
+ } else {
+ g_urlNews = g_urlBase + "news";
+ }
+ if (cmdOptions.contains("url-help")) {
+ g_urlHelp = cmdOptions.value("url-help");
+ } else {
+ g_urlHelp = g_urlBase + "help";
+ }
QString size;
int width = VMCHOOSER_DEFAULT_WIDTH, height = VMCHOOSER_DEFAULT_HEIGHT;