projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
035f7d3
)
exec a requested new process via /bin/sh to allow for command line args, the same...
author
Dana Jansens
<danakj@orodu.net>
Thu, 16 Jan 2003 23:05:58 +0000
(23:05 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Thu, 16 Jan 2003 23:05:58 +0000
(23:05 +0000)
src/openbox.cc
patch
|
blob
|
history
diff --git
a/src/openbox.cc
b/src/openbox.cc
index
8994811
..
d599e7b
100644
(file)
--- a/
src/openbox.cc
+++ b/
src/openbox.cc
@@
-199,10
+199,8
@@
Openbox::~Openbox()
if (_restart) {
if (!_restart_prog.empty()) {
- const std::string &dstr =
- otk::display->screenInfo(first_screen)->displayString();
- otk::putenv(const_cast<char *>(dstr.c_str()));
- execlp(_restart_prog.c_str(), _restart_prog.c_str(), NULL);
+ otk::putenv(otk::display->screenInfo(first_screen)->displayString());
+ execl("/bin/sh", "/bin/sh", "-c", _restart_prog.c_str(), NULL);
perror(_restart_prog.c_str());
}