diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2021-09-12 06:12:33 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2021-09-12 12:06:05 +0200 |
commit | d5c1a7811bf76abf22045f8f2f5c24fc0d1f6747 (patch) | |
tree | f0e9fbfe4669c7a15d4c330d2711b4a2bef90ae4 | |
parent | da59bea7752799803ff59a714627e53a5857b74d (diff) | |
download | seatd-d5c1a7811bf76abf22045f8f2f5c24fc0d1f6747.tar.xz |
seatd-launch: respect PATH when looking for command
$ seatd-launch sway -c /dev/null
Could not start target: No such file or directory
-rw-r--r-- | seatd-launch/seatd-launch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/seatd-launch/seatd-launch.c b/seatd-launch/seatd-launch.c index 0903fe1..c362a15 100644 --- a/seatd-launch/seatd-launch.c +++ b/seatd-launch/seatd-launch.c @@ -139,7 +139,7 @@ int main(int argc, char *argv[]) { goto error_seatd; } else if (child == 0) { setenv("SEATD_SOCK", sockpath, 1); - execv(argv[1], &argv[1]); + execvp(argv[1], &argv[1]); perror("Could not start target"); _exit(1); } |