From 5398f3a24e988da4836f78fba62acf2ead1030b0 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 4 Apr 2021 11:53:53 -0400 Subject: Call setsid() for hook/notification commands We do not want hook or notification commands to interact with the terminal in any way. Create a new session for them. Addresses GitHub issue #326. Signed-off-by: Lukas Fleischer --- src/notify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/notify.c') diff --git a/src/notify.c b/src/notify.c index b73c369..3491e8e 100644 --- a/src/notify.c +++ b/src/notify.c @@ -221,7 +221,7 @@ unsigned notify_launch_cmd(void) notify_app.state |= APOINT_NOTIFIED; - if ((pid = shell_exec(&pin, &pout, &perr, *arg, arg))) { + if ((pid = shell_exec(&pin, &pout, &perr, 1, *arg, arg))) { close(pin); close(pout); close(perr); -- cgit v1.2.3-54-g00ecf