aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/FbCommands.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc
index 3775544..8266bce 100644
--- a/src/FbCommands.cc
+++ b/src/FbCommands.cc
@@ -156,11 +156,9 @@ int ExecuteCmd::run() {
156 displaystring.erase(displaystring.size()-1); 156 displaystring.erase(displaystring.size()-1);
157 displaystring += intbuff; 157 displaystring += intbuff;
158 158
159 std::string exec_cmd = "exec " + m_cmd;
160
161 setsid(); 159 setsid();
162 putenv(const_cast<char *>(displaystring.c_str())); 160 putenv(const_cast<char *>(displaystring.c_str()));
163 execl(shell, shell, "-c", exec_cmd.c_str(), static_cast<void*>(NULL)); 161 execl(shell, shell, "-c", m_cmd.c_str(), static_cast<void*>(NULL));
164 exit(0); 162 exit(0);
165 163
166 return pid; // compiler happy -> we are happy ;) 164 return pid; // compiler happy -> we are happy ;)