X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fstartup.c;h=85e5dbc2e400b75651398cd2c0746677811b2ee6;hb=f691a55923850a4d315450925fc98733d07b69c9;hp=ee51664fa3dd7ab360ed5674d87667df772fb018;hpb=857fc0bf175fdbe90f59a6b80935d9b42dd81e83;p=i3%2Fi3 diff --git a/src/startup.c b/src/startup.c index ee51664f..85e5dbc2 100644 --- a/src/startup.c +++ b/src/startup.c @@ -17,6 +17,7 @@ #include #include +#include #define SN_API_NOT_YET_FROZEN 1 #include @@ -191,15 +192,7 @@ void start_application(const char *command, bool no_startup_id) { if (!no_startup_id) sn_launcher_context_setup_child_process(context); - /* Stores the path of the shell */ - static const char *shell = NULL; - - if (shell == NULL) - if ((shell = getenv("SHELL")) == NULL) - shell = "/bin/sh"; - - /* This is the child */ - execl(shell, shell, "-c", command, (void*)NULL); + execl(_PATH_BSHELL, _PATH_BSHELL, "-c", command, (void*)NULL); /* not reached */ } _exit(0);