Commit c1f8912d authored by Christian Hergert's avatar Christian Hergert

terminal: don't use runtime for preferred shell discover

This is more likely to make us end up with something like /bin/sh if we
try to run getent from within the runtime.
parent 7c53eadf
......@@ -101,11 +101,11 @@ gb_terminal_view_discover_shell (GbTerminalView *self,
if (!g_shell_parse_argv (command, NULL, &argv, error))
return NULL;
if (self->runtime != NULL)
launcher = ide_runtime_create_launcher (self->runtime, NULL);
if (launcher == NULL)
launcher = ide_subprocess_launcher_new (G_SUBPROCESS_FLAGS_STDOUT_PIPE);
* We don't use the runtime shell here, because we want to know
* what the host thinks the user shell should be.
launcher = ide_subprocess_launcher_new (G_SUBPROCESS_FLAGS_STDOUT_PIPE);
ide_subprocess_launcher_set_run_on_host (launcher, TRUE);
ide_subprocess_launcher_set_clear_env (launcher, FALSE);
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