all repos — fluxbox @ 6f8a5c7a8dc4552105205c8c9f0d270703bcc271

custom fork of the fluxbox windowmanager

small fix for the /bin/sh issue .. just using /bin/zsh now
mathias mathias
commit

6f8a5c7a8dc4552105205c8c9f0d270703bcc271

parent

222d8cd7e9c0f28b3dd0b9b253a0b096d856195f

3 files changed, 6 insertions(+), 6 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,5 +1,9 @@

(Format: Year/Month/Day) Changes for 1.0.0: +*07/06/09: + * Minor change to the /bin/sh - solution (Mathias) + we are using now just $SHELL -c <line_here> + src/FbCommands.cc util/fbrun/FbRun.cc *07/06/08: * Fix transient windows getting tabbed from apps file and not changing layers when main window is in a lowered tab (Mark)
M src/FbCommands.ccsrc/FbCommands.cc

@@ -155,11 +155,9 @@ // remove last number of display and add screen num

displaystring.erase(displaystring.size()-1); displaystring += intbuff; - std::string exec_cmd = "exec " + m_cmd; - setsid(); putenv(const_cast<char *>(displaystring.c_str())); - execl(shell, shell, "-c", exec_cmd.c_str(), static_cast<void*>(NULL)); + execl(shell, shell, "-c", m_cmd.c_str(), static_cast<void*>(NULL)); exit(0); return pid; // compiler happy -> we are happy ;)
M util/fbrun/FbRun.ccutil/fbrun/FbRun.cc

@@ -124,10 +124,8 @@ char *shell = getenv("SHELL");

if (!shell) shell = "/bin/sh"; - std::string exec_cmd = "exec " + command; - setsid(); - execl(shell, shell, "-c", exec_cmd.c_str(), static_cast<void*>(NULL)); + execl(shell, shell, "-c", command.c_str(), static_cast<void*>(NULL)); exit(0); //exit child }