Commit 658c0bab authored by Christian Hergert's avatar Christian Hergert

terminal: fallback to /bin/bash when necessary

All the runtimes today thus far have bash, so just depend on that if we
do not have the preferred shell in the runtime (say its zsh, fish, etc).
parent e0dcecc6
......@@ -259,7 +259,15 @@ gb_terminal_respawn (GbTerminalView *self,
IDE_GOTO (failure);
if (self->runtime != NULL)
launcher = ide_runtime_create_launcher (self->runtime, NULL);
launcher = ide_runtime_create_launcher (self->runtime, NULL);
if (!ide_runtime_contains_program_in_path (self->runtime, shell, NULL))
g_free (shell);
shell = g_strdup ("/bin/bash");
if (launcher == NULL)
launcher = ide_subprocess_launcher_new (0);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment