seatd-launch: respect PATH when looking for command

$ seatd-launch sway -c /dev/null
Could not start target: No such file or directory
This commit is contained in:
Jan Beich 2021-09-12 06:12:33 +02:00 committed by Kenny Levinsen
parent da59bea775
commit d5c1a7811b

View file

@ -139,7 +139,7 @@ int main(int argc, char *argv[]) {
goto error_seatd; goto error_seatd;
} else if (child == 0) { } else if (child == 0) {
setenv("SEATD_SOCK", sockpath, 1); setenv("SEATD_SOCK", sockpath, 1);
execv(argv[1], &argv[1]); execvp(argv[1], &argv[1]);
perror("Could not start target"); perror("Could not start target");
_exit(1); _exit(1);
} }