From 793ac673aabb3518e5a9d50c3577e77a21031b4f Mon Sep 17 00:00:00 2001 From: Matt Rose Date: Wed, 9 Sep 2020 14:05:08 -0400 Subject: [PATCH] update Terminal.spawn_child() to use spawn_async, not spawn_sync --- terminatorlib/terminal.py | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index e8876518..5d13dfeb 100644 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -1488,14 +1488,18 @@ class Terminal(Gtk.VBox): 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.FILE_AND_ARGV_ZERO | GLib.SpawnFlags.DO_NOT_REAP_CHILD, - None, - None, - None) + 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) self.command = shell self.titlebar.update()