diff options
author | mathias <mathias> | 2007-06-09 17:44:27 (GMT) |
---|---|---|
committer | mathias <mathias> | 2007-06-09 17:44:27 (GMT) |
commit | 6f8a5c7a8dc4552105205c8c9f0d270703bcc271 (patch) | |
tree | 4ba221d8ff113a7a60c58e538f504fdcab331110 /src | |
parent | 222d8cd7e9c0f28b3dd0b9b253a0b096d856195f (diff) | |
download | fluxbox_paul-6f8a5c7a8dc4552105205c8c9f0d270703bcc271.zip fluxbox_paul-6f8a5c7a8dc4552105205c8c9f0d270703bcc271.tar.bz2 |
small fix for the /bin/sh issue .. just using /bin/zsh now
Diffstat (limited to 'src')
-rw-r--r-- | src/FbCommands.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc index 4247820..9becb8e 100644 --- a/src/FbCommands.cc +++ b/src/FbCommands.cc | |||
@@ -155,11 +155,9 @@ int ExecuteCmd::run() { | |||
155 | displaystring.erase(displaystring.size()-1); | 155 | displaystring.erase(displaystring.size()-1); |
156 | displaystring += intbuff; | 156 | displaystring += intbuff; |
157 | 157 | ||
158 | std::string exec_cmd = "exec " + m_cmd; | ||
159 | |||
160 | setsid(); | 158 | setsid(); |
161 | putenv(const_cast<char *>(displaystring.c_str())); | 159 | putenv(const_cast<char *>(displaystring.c_str())); |
162 | execl(shell, shell, "-c", exec_cmd.c_str(), static_cast<void*>(NULL)); | 160 | execl(shell, shell, "-c", m_cmd.c_str(), static_cast<void*>(NULL)); |
163 | exit(0); | 161 | exit(0); |
164 | 162 | ||
165 | return pid; // compiler happy -> we are happy ;) | 163 | return pid; // compiler happy -> we are happy ;) |