From 4494d24989b9f0ddc27c74685aa9fb501c1f5d25 Mon Sep 17 00:00:00 2001 From: thebigs Date: Thu, 18 Feb 2021 22:32:10 -0500 Subject: [PATCH] Allow caller of spawn_child() to specify the initial command to run in the new child --- terminatorlib/terminal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index da49338c..f594b686 100644 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -1420,10 +1420,10 @@ class Terminal(Gtk.VBox): self.is_held_open = True self.titlebar.update() - def spawn_child(self, widget=None, respawn=False, debugserver=False): + def spawn_child(self, init_command=None, widget=None, respawn=False, debugserver=False): args = [] shell = None - command = None + command = init_command if self.terminator.doing_layout: dbg('still laying out, refusing to spawn a child')