properly pass cwd from a second instance

This commit is contained in:
Eugene Pankov 2018-09-20 13:01:42 +02:00
parent 5fe71b8169
commit 6b49cdc974

View File

@ -32,7 +32,7 @@ process.on('uncaughtException' as any, err => {
})
app.on('second-instance', (_event, argv, cwd) => {
application.send('host:second-instance', parseArgs(argv, cwd))
application.send('host:second-instance', parseArgs(argv, cwd), cwd)
})
const argv = parseArgs(process.argv, process.cwd())