Merge pull request #208 from mattrose/update-vte-spawn

update Terminal.spawn_child() to use spawn_async, not spawn_sync
This commit is contained in:
Matt Rose 2020-09-22 17:17:13 -04:00 committed by GitHub
commit f5cbdce5fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 8 deletions

View File

@ -1489,13 +1489,17 @@ 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(
Vte.PtyFlags.DEFAULT,
self.cwd, self.cwd,
args, args,
envv, envv,
GLib.SpawnFlags.FILE_AND_ARGV_ZERO | GLib.SpawnFlags.DO_NOT_REAP_CHILD, GLib.SpawnFlags.FILE_AND_ARGV_ZERO | GLib.SpawnFlags.DO_NOT_REAP_CHILD,
None, None,
None, None,
-1,
None,
None,
None) None)
self.command = shell self.command = shell