Bugfix: Correctly restart i3 when not using its absolute path

This commit is contained in:
Michael Stapelberg
2009-05-01 16:10:02 +02:00
parent e9c5643a8b
commit e91f399609
4 changed files with 6 additions and 5 deletions

View File

@ -607,8 +607,8 @@ void parse_command(xcb_connection_t *conn, const char *command) {
/* Is it <restart>? Then restart in place. */
if (STARTS_WITH(command, "restart")) {
LOG("restarting \"%s\"...\n", application_path);
execl(application_path, application_path, NULL);
LOG("restarting \"%s\"...\n", start_argv[0]);
execvp(start_argv[0], start_argv);
/* not reached */
}