[core/input] Invoke commands in a subshell

add shell capability to util.cli and make sure that the input module
uses that to reliably spawn whatever command the user wants to run.

see #628
This commit is contained in:
tobi-wan-kenobi 2020-05-16 11:41:34 +02:00
parent 06fa453d71
commit eea3c758de
3 changed files with 8 additions and 3 deletions

View file

@ -38,7 +38,7 @@ def __event_id(obj_id, button):
def __execute(cmd):
try:
util.cli.execute(cmd, wait=False)
util.cli.execute(cmd, wait=False, shell=True)
except Exception as e:
logging.error("failed to invoke callback: {}".format(e))