aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-04-28 01:17:39 (GMT)
committerfluxgen <fluxgen>2003-04-28 01:17:39 (GMT)
commit697aa333554f71a6670513fe896ab50ab5caf6bd (patch)
tree51f3dc4492ea6f367f02b3bc965115f9d3b26c05 /src
parentaa7ca74e8ba973e38dcbb181a6b6dafac9cad63d (diff)
downloadfluxbox-697aa333554f71a6670513fe896ab50ab5caf6bd.zip
fluxbox-697aa333554f71a6670513fe896ab50ab5caf6bd.tar.bz2
forgot putenv
Diffstat (limited to 'src')
-rw-r--r--src/FbCommands.cc3
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 }