term: term_spawn_new: always spawn foot/footclient from PATH

This commit is contained in:
Daniel Eklöf 2019-12-21 15:29:42 +01:00
parent 57de9feaa5
commit a484a65fef
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 3 additions and 3 deletions

View file

@ -1672,7 +1672,7 @@ term_spawn_new(const struct terminal *term)
if (pid2 == 0) {
/* Child */
close(pipe_fds[0]);
execl(term->foot_exe, term->foot_exe, NULL);
execlp(term->foot_exe, term->foot_exe, NULL);
write(pipe_fds[1], &errno, sizeof(errno));
_exit(errno);
}