diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/FbCommands.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc index 0d7d7b6..5ce933a 100644 --- a/src/FbCommands.cc +++ b/src/FbCommands.cc | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: FbCommands.cc,v 1.4 2003/04/28 00:34:59 fluxgen Exp $ | 22 | // $Id: FbCommands.cc,v 1.5 2003/04/28 01:17:39 fluxgen Exp $ |
23 | 23 | ||
24 | #include "FbCommands.hh" | 24 | #include "FbCommands.hh" |
25 | #include "fluxbox.hh" | 25 | #include "fluxbox.hh" |
@@ -48,6 +48,7 @@ void ExecuteCmd::execute() { | |||
48 | displaystring.erase(displaystring.size()-1); | 48 | displaystring.erase(displaystring.size()-1); |
49 | displaystring += intbuff; | 49 | displaystring += intbuff; |
50 | setsid(); | 50 | setsid(); |
51 | putenv(const_cast<char *>(displaystring.c_str())); | ||
51 | execl("/bin/sh", "/bin/sh", "-c", m_cmd.c_str(), 0); | 52 | execl("/bin/sh", "/bin/sh", "-c", m_cmd.c_str(), 0); |
52 | exit(0); | 53 | exit(0); |
53 | } | 54 | } |