From d9c887e8cc2087251596153ab1a55e1fcf30cbab Mon Sep 17 00:00:00 2001 From: hawkeye116477 Date: Thu, 14 May 2026 23:40:36 +0200 Subject: [PATCH] Execute through the shell only at Windows --- legendary/cli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/legendary/cli.py b/legendary/cli.py index 7e44530..3240907 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -714,7 +714,10 @@ class LegendaryCLI: if params.environment: logger.debug('Environment overrides: {}'.format(', '.join( f'{k}={v}' for k, v in params.environment.items()))) - subprocess.Popen(full_params, cwd=params.working_directory, env=full_env, shell=True) + use_shell = False + if os.name == 'nt': + use_shell = True + subprocess.Popen(full_params, cwd=params.working_directory, env=full_env, shell=use_shell) def _launch_origin(self, args): game = self.core.get_game(app_name=args.app_name)