diff --git a/src/back/GameLauncher.ts b/src/back/GameLauncher.ts index 38d102fd4..6ee415f5a 100644 --- a/src/back/GameLauncher.ts +++ b/src/back/GameLauncher.ts @@ -376,6 +376,12 @@ export namespace GameLauncher { ...newEnvVars, 'WINEDEBUG': 'fixme-all', ...(proxy !== '' ? {'http_proxy': `http://${proxy}/`, 'HTTP_PROXY': `http://${proxy}/`} : null) }; + // If WINE's bin directory exists in FPSoftware, add it to the PATH + if (fs.existsSync(`${fpPath}/FPSoftware/Wine/bin`)) { + newEnvVars = { + ...newEnvVars, 'PATH': `${fpPath}/FPSoftware/Wine/bin:` + process.env.PATH + } + } } return { // Copy this processes environment variables