remove the "exec " from the command for running menu stuff so that normal shell things work right in the menu
Dana Jansens danakj@orodu.net
1 files changed,
2 insertions(+),
4 deletions(-)
jump to
M
src/Util.cc
→
src/Util.cc
@@ -169,13 +169,11 @@ if (! fork()) {
setsid(); int ret = putenv(const_cast<char *>(displaystring.c_str())); assert(ret != -1); - string cmd = "exec "; - cmd += command; - ret = execl("/bin/sh", "/bin/sh", "-c", cmd.c_str(), NULL); + ret = execl("/bin/sh", "/bin/sh", "-c", command.c_str(), NULL); exit(ret); } #else // __EMX__ - spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", command, NULL); + spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", command.c_str(), NULL); #endif // !__EMX__ }