Fix the "Run command as login shell"

This commit is contained in:
Stephen Boddy 2015-11-30 19:08:04 +01:00
parent d3a0d5193e
commit cd68c0e264

View File

@ -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)