diff --git a/bottles/frontend/cli/cli.py b/bottles/frontend/cli/cli.py index 95592077f5..615d76e04d 100644 --- a/bottles/frontend/cli/cli.py +++ b/bottles/frontend/cli/cli.py @@ -686,18 +686,24 @@ def run_program(self): _program_gamescope = program.get("gamescope") _program_virt_desktop = program.get("virtual_desktop") - if _executable: + WineExecutor.run_program(bottle, program | {"arguments": _args}) + + elif _executable: _executable = _executable.replace("file://", "") if _executable.startswith('"') and _executable.endswith('"'): _executable = _executable[1:-1] elif _executable.startswith("'") and _executable.endswith("'"): _executable = _executable[1:-1] + + WineExecutor( + bottle, + exec_path=_executable, + args=_args, + ).run_cli() else: - sys.stderr.write("No executable specified or found\n") + sys.stderr.write("No program or executable specified, you must use either --program or --executable\n") exit(1) - WineExecutor.run_program(bottle, program) - # endregion # region SHELL