]> Dogcows Code - chaz/openbox/commitdiff
remove the "exec " from the command for running menu stuff so that normal shell thing...
authorDana Jansens <danakj@orodu.net>
Thu, 1 Aug 2002 07:25:25 +0000 (07:25 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 1 Aug 2002 07:25:25 +0000 (07:25 +0000)
src/Util.cc

index 3c494901b18cea69c77e2a899611fc4038b94a5e..6e2ea152e7acef7522d8d0a65f08da416da66476 100644 (file)
@@ -169,13 +169,11 @@ void bexec(const string& command, const string& displaystring) {
     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__
 }
 
This page took 0.022319 seconds and 4 git commands to generate.