Prefer $SHELL over login shell.

This commit is contained in:
Kenneth Lyons 2016-04-08 23:12:14 -07:00
parent 2a87f8dd63
commit b219f171c9
1 changed files with 3 additions and 3 deletions

View File

@ -1457,12 +1457,12 @@ static void exit_with_success(VteTerminal *) {
}
static char *get_user_shell_with_fallback() {
if (char *command = vte_get_user_shell())
return command;
if (const char *env = g_getenv("SHELL"))
return g_strdup(env);
if (char *command = vte_get_user_shell())
return command;
return g_strdup("/bin/sh");
}