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