Skip to content

Commit f988638

Browse files
authored
Set CWD when launching a title through the EA app (#24)
1 parent e17bf3a commit f988638

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

legendary/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ def _launch_origin(self, args):
845845
logger.warning(f'Pre-launch command failed: {e!r}')
846846

847847
logger.debug(f'Opening Origin URI with command: {shlex.join(command)}')
848-
subprocess.Popen(command, env=full_env)
848+
subprocess.Popen(command, env=full_env, cwd=full_env.get('WINEPREFIX', None))
849849

850850
def install_game(self, args):
851851
if not self.core.lgd.lock_installed():

0 commit comments

Comments
 (0)