From 191c394db8a9ba743dfde16ca82c82444ff4a71c Mon Sep 17 00:00:00 2001 From: Jason Nader Date: Sun, 1 Mar 2020 12:46:30 +0900 Subject: Use _PATH_BSHELL in nagbar script as well --- i3-nagbar/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3-nagbar/main.c b/i3-nagbar/main.c index 2f4cb0e3..73df07c4 100644 --- a/i3-nagbar/main.c +++ b/i3-nagbar/main.c @@ -169,7 +169,7 @@ static void handle_button_release(xcb_connection_t *conn, xcb_button_release_eve warn("Could not fdopen() temporary script to store the nagbar command"); return; } - fprintf(script, "#!/bin/sh\nrm %s\n%s", script_path, button->action); + fprintf(script, "#!%s\nrm %s\n%s", _PATH_BSHELL, script_path, button->action); /* Also closes fd */ fclose(script); -- cgit v1.2.3-54-g00ecf