def activate(self, leaf, ctx): try: utils.spawn_terminal(leaf.object, ctx.environment.get_screen()) except utils.SpawnError as exc: raise OperationError(exc)
def activate(self, leaf): utils.spawn_terminal(leaf.object)