+ if (openbox.doRestart()) {
+ const std::string &prog = openbox.restartProgram();
+ if (!prog.empty()) {
+ execl("/bin/sh", "/bin/sh", "-c", prog.c_str(), NULL);
+ perror(prog.c_str());
+ }
+
+ // fall back in case the above execlp doesn't work
+ execvp(argv[0], argv);
+ execvp(otk::basename(argv[0]).c_str(), argv);
+ }