diff options
author | Nils Schwabe | 2014-03-03 15:14:20 +0100 |
---|---|---|
committer | Nils Schwabe | 2014-03-03 15:14:20 +0100 |
commit | 030d91e628a2ecd5634376c9c4d903a1fa0fb423 (patch) | |
tree | 227029e3b48deb1d4d01ce497d9ec3b8d47f7a61 /src/globals.cpp | |
parent | Initial commit (diff) | |
download | vmchooser2-030d91e628a2ecd5634376c9c4d903a1fa0fb423.tar.gz vmchooser2-030d91e628a2ecd5634376c9c4d903a1fa0fb423.tar.xz vmchooser2-030d91e628a2ecd5634376c9c4d903a1fa0fb423.zip |
added files from vmchooser1
Diffstat (limited to 'src/globals.cpp')
-rw-r--r-- | src/globals.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
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 <QDir> +#include <QString> +#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; |