mirror of
https://github.com/derrod/legendary.git
synced 2026-08-27 09:54:55 +00:00
Execute through the shell only at Windows
This commit is contained in:
parent
79979ed0bf
commit
d9c887e8cc
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue