small fix for the /bin/sh issue .. just using /bin/zsh now
This commit is contained in:
parent
222d8cd7e9
commit
6f8a5c7a8d
3 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,9 @@
|
||||||
(Format: Year/Month/Day)
|
(Format: Year/Month/Day)
|
||||||
Changes for 1.0.0:
|
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:
|
*07/06/08:
|
||||||
* Fix transient windows getting tabbed from apps file and not changing layers
|
* Fix transient windows getting tabbed from apps file and not changing layers
|
||||||
when main window is in a lowered tab (Mark)
|
when main window is in a lowered tab (Mark)
|
||||||
|
|
|
@ -155,11 +155,9 @@ int ExecuteCmd::run() {
|
||||||
displaystring.erase(displaystring.size()-1);
|
displaystring.erase(displaystring.size()-1);
|
||||||
displaystring += intbuff;
|
displaystring += intbuff;
|
||||||
|
|
||||||
std::string exec_cmd = "exec " + m_cmd;
|
|
||||||
|
|
||||||
setsid();
|
setsid();
|
||||||
putenv(const_cast<char *>(displaystring.c_str()));
|
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);
|
exit(0);
|
||||||
|
|
||||||
return pid; // compiler happy -> we are happy ;)
|
return pid; // compiler happy -> we are happy ;)
|
||||||
|
|
|
@ -124,10 +124,8 @@ void FbRun::run(const std::string &command) {
|
||||||
if (!shell)
|
if (!shell)
|
||||||
shell = "/bin/sh";
|
shell = "/bin/sh";
|
||||||
|
|
||||||
std::string exec_cmd = "exec " + command;
|
|
||||||
|
|
||||||
setsid();
|
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
|
exit(0); //exit child
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue