From 697aa333554f71a6670513fe896ab50ab5caf6bd Mon Sep 17 00:00:00 2001 From: fluxgen Date: Mon, 28 Apr 2003 01:17:39 +0000 Subject: forgot putenv --- src/FbCommands.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbCommands.cc,v 1.4 2003/04/28 00:34:59 fluxgen Exp $ +// $Id: FbCommands.cc,v 1.5 2003/04/28 01:17:39 fluxgen Exp $ #include "FbCommands.hh" #include "fluxbox.hh" @@ -48,6 +48,7 @@ void ExecuteCmd::execute() { displaystring.erase(displaystring.size()-1); displaystring += intbuff; setsid(); + putenv(const_cast(displaystring.c_str())); execl("/bin/sh", "/bin/sh", "-c", m_cmd.c_str(), 0); exit(0); } -- cgit v0.11.2