Use _PATH_BSHELL in nagbar script as well

This commit is contained in:
Jason Nader 2020-03-01 12:46:30 +09:00
parent d2acdcc69f
commit 191c394db8
No known key found for this signature in database
GPG Key ID: EE220FCAA09AF23D
1 changed files with 1 additions and 1 deletions

View File

@ -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);