Set CWD when launching a title through the EA app

This commit is contained in:
Katharina Dröge 2026-08-09 18:42:11 +02:00
parent 1d1826f3c4
commit 5c5a57189c
No known key found for this signature in database
GPG key ID: 3D586C5E334E5A26

View file

@ -836,7 +836,7 @@ class LegendaryCLI:
logger.warning(f'Pre-launch command failed: {e!r}')
logger.debug(f'Opening URI with command: {shlex.join(command)}')
subprocess.Popen(command, env=full_env)
subprocess.Popen(command, env=full_env, cwd=full_env.get('WINEPREFIX', None))
def install_game(self, args):
if not self.core.lgd.lock_installed():