update Terminal.spawn_child() to use spawn_async, not spawn_sync

This commit is contained in:
Matt Rose 2020-09-09 14:05:08 -04:00
parent 1ad579ce03
commit 793ac673aa
1 changed files with 12 additions and 8 deletions

View File

@ -1488,14 +1488,18 @@ class Terminal(Gtk.VBox):
dbg('Forking shell: "%s" with args: %s' % (shell, args)) dbg('Forking shell: "%s" with args: %s' % (shell, args))
args.insert(0, shell) args.insert(0, shell)
result, self.pid = self.vte.spawn_sync(Vte.PtyFlags.DEFAULT, self.pid = self.vte.spawn_async(
self.cwd, Vte.PtyFlags.DEFAULT,
args, self.cwd,
envv, args,
GLib.SpawnFlags.FILE_AND_ARGV_ZERO | GLib.SpawnFlags.DO_NOT_REAP_CHILD, envv,
None, GLib.SpawnFlags.FILE_AND_ARGV_ZERO | GLib.SpawnFlags.DO_NOT_REAP_CHILD,
None, None,
None) None,
-1,
None,
None,
None)
self.command = shell self.command = shell
self.titlebar.update() self.titlebar.update()