Allow caller of spawn_child() to specify the initial command to run in the new child

This commit is contained in:
thebigs 2021-02-18 22:32:10 -05:00
parent ee8c51d10e
commit 4494d24989
1 changed files with 2 additions and 2 deletions

View File

@ -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')