From 030d91e628a2ecd5634376c9c4d903a1fa0fb423 Mon Sep 17 00:00:00 2001 From: Nils Schwabe Date: Mon, 3 Mar 2014 15:14:20 +0100 Subject: added files from vmchooser1 --- src/globals.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/globals.cpp (limited to 'src/globals.cpp') diff --git a/src/globals.cpp b/src/globals.cpp new file mode 100644 index 0000000..8026752 --- /dev/null +++ b/src/globals.cpp @@ -0,0 +1,26 @@ +#include +#include +#include "globals.h" + +//QString binPath(QApplication::applicationDirPath()); +QString binPath(VMCHOOSER_BIN_PATH); +QString etcPath(VMCHOOSER_ETC_BASE_PATH); +QString vSessionPath(VMCHOOSER_VMPATH); +QString xSessionPath(VMCHOOSER_X_SESSIONS_PATH); +QString userPath(QDir::homePath() + "/.openslx"); + +QString runVmScript(binPath + "/run-virt.sh"); +QString filterScript(binPath + "/xmlfilter.sh"); +QString printerScript(etcPath + "/printer.sh"); +QString scannerScript(etcPath + "/scanner.sh"); +QString sessionStartScript(VMCHOOSER_SESSION_START_SCRIPT); + +const QString globalConfFile(etcPath + "/vmchooser.conf"); +const QString userConfFile(userPath + "/vmchooser.conf"); +const QString previousSessionFile(userPath + "/vmchooser_prev_session"); + +bool debugMode = false; +bool pvsEnabled = false; + +QString pool; +QString theme; -- cgit v1.2.3-55-g7522