X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=util%2Fepist%2Fscreen.cc;h=8f9fbe3c02605483caf76fa5399c93b006c9bec3;hb=728022e170bf7f0ccc20101cc53587dfcd853ee5;hp=78f3a9d0805b5c2a21707685075ce8552cc3b0cb;hpb=c258a4717a3ce354460d70f15675270b0188a50d;p=chaz%2Fopenbox diff --git a/util/epist/screen.cc b/util/epist/screen.cc index 78f3a9d0..8f9fbe3c 100644 --- a/util/epist/screen.cc +++ b/util/epist/screen.cc @@ -408,10 +408,11 @@ void screen::execCommand(const std::string &cmd) const { if ((pid = fork()) == 0) { extern char **environ; + string c = "exec " + cmd; char *const argv[] = { "sh", "-c", - const_cast(cmd.c_str()), + const_cast(c.c_str()), 0 }; // make the command run on the correct screen