Allow caller of spawn_child() to specify the initial command to run in the new child
This commit is contained in:
parent
ee8c51d10e
commit
4494d24989
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user