From cd68c0e264c281efde4f267b03b1725224ba4cad Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Mon, 30 Nov 2015 19:08:04 +0100 Subject: [PATCH] Fix the "Run command as login shell" --- terminatorlib/terminal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 722dbf6b..a96a7979 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -1405,11 +1405,12 @@ class Terminal(Gtk.VBox): envv.append('TERMINATOR_DBUS_PATH=%s' % self.terminator.dbus_path) dbg('Forking shell: "%s" with args: %s' % (shell, args)) + args.insert(0, shell) result, self.pid = self.vte.spawn_sync(Vte.PtyFlags.DEFAULT, self.cwd, args, envv, - GLib.SpawnFlags.DO_NOT_REAP_CHILD, + GLib.SpawnFlags.FILE_AND_ARGV_ZERO | GLib.SpawnFlags.DO_NOT_REAP_CHILD, None, None, None)