From 5c5a57189c0edcbe2346570544fc580bd1dbe2d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Katharina=20Dr=C3=B6ge?= Date: Sun, 9 Aug 2026 18:42:11 +0200 Subject: [PATCH] Set CWD when launching a title through the EA app --- legendary/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legendary/cli.py b/legendary/cli.py index 0a9d6b9..158e5aa 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -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():