def METHOD_NAME(self, event: Event) -> None:
    """Execute a command taken from the selected text in a separate process."""
    k = self.c.k
    w = self.editWidget(event)
    if w:
        if w.hasSelection():
            command = w.getSelectedText()
            self.executeSubprocess(event, command)
        else:
            g.es('No text selected')
    k.keyboardQuit()