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

@ -55,6 +55,10 @@
* Default color theme from a variant of the Zenburn theme, to a
variant of the Solarized dark theme.
* Default `pad` from 2x2 to 0x0 (i.e. no padding at all).
* Current working directory (as set by OSC-7) is now passed to the
program executed by the `pipe-*` key bindings ([#1166][166]).
[1166]: https://codeberg.org/dnkl/foot/issues/1166
### Deprecated

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;