summaryrefslogtreecommitdiffstats
path: root/src/dialog.cpp
diff options
context:
space:
mode:
authorJonathan Bauer2016-01-26 15:54:20 +0100
committerJonathan Bauer2016-01-26 15:54:20 +0100
commita81d635ea8ef62932b9a8c79620091b182be23eb (patch)
tree4f2ee02e119d151d34156aa82df3a3d0537d44bf /src/dialog.cpp
parentreworked session information sent to the session process (diff)
downloadvmchooser2-a81d635ea8ef62932b9a8c79620091b182be23eb.tar.gz
vmchooser2-a81d635ea8ef62932b9a8c79620091b182be23eb.tar.xz
vmchooser2-a81d635ea8ef62932b9a8c79620091b182be23eb.zip
reintroduce SESSION_NAME and return an empty String for vsession's exec string
Diffstat (limited to 'src/dialog.cpp')
-rw-r--r--src/dialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dialog.cpp b/src/dialog.cpp
index 9cb5aeb..023e6ef 100644
--- a/src/dialog.cpp
+++ b/src/dialog.cpp
@@ -112,12 +112,13 @@ void Dialog::on_treeView_doubleClicked(const QModelIndex& index)
else
setenv("PVS_AUTO_CONNECT", "FALSE", 1);
// export session information to the environment of the process to be exec'ed
+ setenv("SESSION_NAME", s->shortDescription().toUtf8(), 1);
if (s->type() == Session::VSESSION) {
setenv("SESSION_TYPE", "VSESSION", 1);
setenv("SESSION_CMD", "", 1);
} else if (s->type() == Session::XSESSION) {
setenv("SESSION_TYPE", "XSESSION", 1);
- setenv("SESSION_CMD", s->execCommand() != NULL ? s->execCommand().toUtf8() : "", 1);
+ setenv("SESSION_CMD", s->execCommand().toUtf8(), 1);
}
// Fork this process twice to detach
pid_t pid = fork();