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:
parent
da59bea775
commit
d5c1a7811b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue