From: Dana Jansens Date: Thu, 1 Aug 2002 07:25:25 +0000 (+0000) Subject: remove the "exec " from the command for running menu stuff so that normal shell thing... X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=79916c273dcce6afb5ba7f395e427ce3fa376dfd;p=chaz%2Fopenbox remove the "exec " from the command for running menu stuff so that normal shell things work right in the menu --- diff --git a/src/Util.cc b/src/Util.cc index 3c494901..6e2ea152 100644 --- a/src/Util.cc +++ b/src/Util.cc @@ -169,13 +169,11 @@ void bexec(const string& command, const string& displaystring) { setsid(); int ret = putenv(const_cast(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__ }