launcher: pass process.env to server process (fixes broken remote-root option)
This commit is contained in:
parent
c6a7d34e90
commit
bd025243d6
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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')) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue