X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=i3bar%2Fsrc%2Fchild.c;h=dce0218fd305fda1ee38be246a47cc2e3618f249;hb=1dbdd4fece86c5f85bde54e40f58fa1a91810933;hp=4e5e49c928edf37f1e3ff450c0cb5b5c0f87ddaa;hpb=6582da993948c392daeaf4be018546e9186effb0;p=i3%2Fi3 diff --git a/i3bar/src/child.c b/i3bar/src/child.c index 4e5e49c9..dce0218f 100644 --- a/i3bar/src/child.c +++ b/i3bar/src/child.c @@ -22,6 +22,7 @@ #include #include #include +#include #include "common.h" @@ -423,12 +424,7 @@ void start_child(char *command) { dup2(pipe_in[1], STDOUT_FILENO); dup2(pipe_out[0], STDIN_FILENO); - static const char *shell = NULL; - - if ((shell = getenv("SHELL")) == NULL) - shell = "/bin/sh"; - - execl(shell, shell, "-c", command, (char*) NULL); + execl(_PATH_BSHELL, _PATH_BSHELL, "-c", command, (char*) NULL); return; default: /* Parent-process. Reroute streams */