Set CWD when launching a title through the EA app (#776)

This commit is contained in:
CommandMC 2026-08-09 21:27:39 +02:00 committed by GitHub
parent 1d1826f3c4
commit 1be4b7e2ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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():