summaryrefslogtreecommitdiffstats
path: root/popup.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2021-10-11 14:01:13 +0100
committerThomas Adam <thomas@xteddy.org>2021-10-11 14:01:13 +0100
commitaf82106fae823f55fd3c746e1b48bc8e52a55e68 (patch)
tree2189aea822dbccb9d70837e6d088cd79c821e664 /popup.c
parent7ca863c5af3dbbb78d45bec5b113a69f983f2fdc (diff)
parent759efe1b3327a7244c03ecc7b90e0e3c49712d06 (diff)
Merge branch 'obsd-master' into master
Diffstat (limited to 'popup.c')
-rw-r--r--popup.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/popup.c b/popup.c
index 3f64a852..3bb74974 100644
--- a/popup.c
+++ b/popup.c
@@ -589,8 +589,9 @@ popup_job_complete_cb(struct job *job)
int
popup_display(int flags, struct cmdq_item *item, u_int px, u_int py, u_int sx,
- u_int sy, const char *shellcmd, int argc, char **argv, const char *cwd,
- struct client *c, struct session *s, popup_close_cb cb, void *arg)
+ u_int sy, struct environ *env, const char *shellcmd, int argc, char **argv,
+ const char *cwd, struct client *c, struct session *s, popup_close_cb cb,
+ void *arg)
{
struct popup_data *pd;
u_int jx, jy;
@@ -634,7 +635,7 @@ popup_display(int flags, struct cmdq_item *item, u_int px, u_int py, u_int sx,
pd->psx = sx;
pd->psy = sy;
- pd->job = job_run(shellcmd, argc, argv, s, cwd,
+ pd->job = job_run(shellcmd, argc, argv, env, s, cwd,
popup_job_update_cb, popup_job_complete_cb, NULL, pd,
JOB_NOWAIT|JOB_PTY|JOB_KEEPWRITE, jx, jy);
pd->ictx = input_init(NULL, job_get_event(pd->job), &pd->palette);
@@ -724,7 +725,7 @@ popup_editor(struct client *c, const char *buf, size_t len,
xasprintf(&cmd, "%s %s", editor, path);
if (popup_display(POPUP_INTERNAL|POPUP_CLOSEEXIT, NULL, px, py, sx, sy,
- cmd, 0, NULL, _PATH_TMP, c, NULL, popup_editor_close_cb, pe) != 0) {
+ NULL, cmd, 0, NULL, _PATH_TMP, c, NULL, popup_editor_close_cb, pe) != 0) {
popup_editor_free(pe);
free(cmd);
return (-1);