launcher: pass process.env to server process (fixes broken remote-root option)

This commit is contained in:
bordun 2020-08-24 17:58:37 +02:00
parent c6a7d34e90
commit bd025243d6
2 changed files with 2 additions and 1 deletions

View file

@ -4,6 +4,7 @@
- bug fixes
- script: broken `storage.getItem` and `storage.removeItem`
- regression breaking `remote-root` option when starting with the launcher
## 1.0.3

View file

@ -166,7 +166,7 @@ if (settings.cli) {
}
}
global.serverProcess = spawn(process.argv[0], args, {stdio: 'pipe', env: {'ELECTRON_RUN_AS_NODE':'1'}})
global.serverProcess = spawn(process.argv[0], args, {stdio: 'pipe', env: {...process.env, 'ELECTRON_RUN_AS_NODE':'1'}})
launcher.webContents.send('server-started')
if (!settings.read('no-gui')) {