diff options
author | markt <markt> | 2007-06-08 19:46:44 (GMT) |
---|---|---|
committer | markt <markt> | 2007-06-08 19:46:44 (GMT) |
commit | 9215c888aa1a7f2980bca794e2401e5d1a2e780d (patch) | |
tree | d4e9a4a468f08445e2ddc7e643a1f32bb30bba2e /src/FbCommands.cc | |
parent | 74fab5c8c5b326332da446135220fbd02c6a6938 (diff) | |
download | fluxbox-9215c888aa1a7f2980bca794e2401e5d1a2e780d.zip fluxbox-9215c888aa1a7f2980bca794e2401e5d1a2e780d.tar.bz2 |
patches from trunk
Diffstat (limited to 'src/FbCommands.cc')
-rw-r--r-- | src/FbCommands.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc index 91474b7..3775544 100644 --- a/src/FbCommands.cc +++ b/src/FbCommands.cc | |||
@@ -155,9 +155,12 @@ int ExecuteCmd::run() { | |||
155 | // remove last number of display and add screen num | 155 | // remove last number of display and add screen num |
156 | displaystring.erase(displaystring.size()-1); | 156 | displaystring.erase(displaystring.size()-1); |
157 | displaystring += intbuff; | 157 | displaystring += intbuff; |
158 | |||
159 | std::string exec_cmd = "exec " + m_cmd; | ||
160 | |||
158 | setsid(); | 161 | setsid(); |
159 | putenv(const_cast<char *>(displaystring.c_str())); | 162 | putenv(const_cast<char *>(displaystring.c_str())); |
160 | execl(shell, shell, "-c", m_cmd.c_str(), static_cast<void*>(NULL)); | 163 | execl(shell, shell, "-c", exec_cmd.c_str(), static_cast<void*>(NULL)); |
161 | exit(0); | 164 | exit(0); |
162 | 165 | ||
163 | return pid; // compiler happy -> we are happy ;) | 166 | return pid; // compiler happy -> we are happy ;) |