summaryrefslogtreecommitdiffstats
path: root/vmchooser/main.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vmchooser/main.cxx')
-rw-r--r--vmchooser/main.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/vmchooser/main.cxx b/vmchooser/main.cxx
index a029a3a..cdcd6e1 100644
--- a/vmchooser/main.cxx
+++ b/vmchooser/main.cxx
@@ -7,6 +7,7 @@
#include "inc/DataEntry.h"
#include "inc/functions.h"
#include "inc/anyoption.h"
+#include "inc/paths.h"
#include <libxml/parser.h>
#include <libxml/tree.h>
@@ -34,7 +35,7 @@ SWindow* mainwin;
*
*/
int main(int argc, char** argv) {
- string version = "0.0.12";
+ string version = "0.0.13";
AnyOption* opt = new AnyOption();
char* xmlpath = NULL;
char* lsesspath = NULL;
@@ -80,7 +81,10 @@ int main(int argc, char** argv) {
*
**/
- ifstream ifs ( "/etc/opt/openslx/vmchooser-stage3.conf" , ifstream::in );
+ ifstream ifs (
+ string(VMCHOOSER_ETC_BASE_PATH).append("vmchooser.conf").c_str(),
+ ifstream::in
+ );
if(ifs) {
int n = 255;
char buf[n];
@@ -113,7 +117,7 @@ int main(int argc, char** argv) {
if (xmlpath == NULL) {
// Default Path comes here
- xmlpath = (char *) "/var/lib/virt/vmware/";
+ xmlpath = (char *) VMCHOOSER_VMPATH;
}
/* VERSION */