diff options
author | Jonathan Bauer | 2016-01-27 13:41:27 +0100 |
---|---|---|
committer | Jonathan Bauer | 2016-01-27 13:41:27 +0100 |
commit | a696d557baaebc7c0731a1c4149c7bf9f630a1e2 (patch) | |
tree | 02ff14442ff55859063875107018f464243e120f /src/dialog.cpp | |
parent | reintroduce SESSION_NAME and return an empty String for vsession's exec string (diff) | |
download | vmchooser2-a696d557baaebc7c0731a1c4149c7bf9f630a1e2.tar.gz vmchooser2-a696d557baaebc7c0731a1c4149c7bf9f630a1e2.tar.xz vmchooser2-a696d557baaebc7c0731a1c4149c7bf9f630a1e2.zip |
fix formating
Diffstat (limited to 'src/dialog.cpp')
-rw-r--r-- | src/dialog.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/dialog.cpp b/src/dialog.cpp index 023e6ef..0e6b747 100644 --- a/src/dialog.cpp +++ b/src/dialog.cpp @@ -111,15 +111,15 @@ void Dialog::on_treeView_doubleClicked(const QModelIndex& index) setenv("PVS_AUTO_CONNECT", "TRUE", 1); 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().toUtf8(), 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().toUtf8(), 1); + } // Fork this process twice to detach pid_t pid = fork(); if (pid == 0) { |