From a44ebd9e2eddae0a37b2f599daf17ff4cdbe9cb4 Mon Sep 17 00:00:00 2001 From: Matt Rose Date: Sun, 27 Sep 2020 09:41:02 -0400 Subject: [PATCH] Revert "Merge pull request #208 from mattrose/update-vte-spawn" This reverts commit f5cbdce5fce1522007c9f4937e06a8a4e9486a51, reversing changes made to e1476a2ef23def50f3a7ca70ce639e50b8f94346. --- terminatorlib/terminal.py | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index e71425af..6acf4552 100644 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -1489,18 +1489,14 @@ class Terminal(Gtk.VBox): dbg('Forking shell: "%s" with args: %s' % (shell, args)) args.insert(0, shell) - self.pid = self.vte.spawn_async( - Vte.PtyFlags.DEFAULT, - self.cwd, - args, - envv, - GLib.SpawnFlags.FILE_AND_ARGV_ZERO | GLib.SpawnFlags.DO_NOT_REAP_CHILD, - None, - None, - -1, - None, - None, - None) + result, self.pid = self.vte.spawn_sync(Vte.PtyFlags.DEFAULT, + self.cwd, + args, + envv, + GLib.SpawnFlags.FILE_AND_ARGV_ZERO | GLib.SpawnFlags.DO_NOT_REAP_CHILD, + None, + None, + None) self.command = shell self.titlebar.update()