Display UAC prompt for games which requires admin rights

This commit is contained in:
hawkeye116477 2024-10-23 12:42:10 +02:00
parent 3963382b3f
commit 79979ed0bf
No known key found for this signature in database
GPG key ID: 66367B184988BC50

View file

@ -714,7 +714,7 @@ class LegendaryCLI:
if params.environment: if params.environment:
logger.debug('Environment overrides: {}'.format(', '.join( logger.debug('Environment overrides: {}'.format(', '.join(
f'{k}={v}' for k, v in params.environment.items()))) f'{k}={v}' for k, v in params.environment.items())))
subprocess.Popen(full_params, cwd=params.working_directory, env=full_env) subprocess.Popen(full_params, cwd=params.working_directory, env=full_env, shell=True)
def _launch_origin(self, args): def _launch_origin(self, args):
game = self.core.get_game(app_name=args.app_name) game = self.core.get_game(app_name=args.app_name)