input: pipe-*: set current CWD when spawning the sub-process

Closes #1166
This commit is contained in:
Daniel Eklöf 2022-09-10 12:04:39 +02:00
parent d2e67689ea
commit 1c072856eb
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 5 additions and 1 deletions

View file

@ -283,7 +283,7 @@ execute_binding(struct seat *seat, struct terminal *term,
}
}
if (!spawn(term->reaper, NULL, binding->aux->pipe.args,
if (!spawn(term->reaper, term->cwd, binding->aux->pipe.args,
pipe_fd[0], stdout_fd, stderr_fd, NULL))
goto pipe_err;