Don't mess up with browser process's execArgv, fixes #492.
This commit is contained in:
parent
e62986b97d
commit
fba1772000
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ process.argv.splice 1, 1
|
||||||
# Pick out switches appended by atom-shell.
|
# Pick out switches appended by atom-shell.
|
||||||
startMark = process.argv.indexOf '--atom-shell-switches-start'
|
startMark = process.argv.indexOf '--atom-shell-switches-start'
|
||||||
endMark = process.argv.indexOf '--atom-shell-switches-end'
|
endMark = process.argv.indexOf '--atom-shell-switches-end'
|
||||||
process.execArgv = process.argv.splice startMark, endMark - startMark + 1
|
process.argv.splice startMark, endMark - startMark + 1
|
||||||
|
|
||||||
# Add browser/api/lib to require's search paths,
|
# Add browser/api/lib to require's search paths,
|
||||||
# which contains javascript part of Atom's built-in libraries.
|
# which contains javascript part of Atom's built-in libraries.
|
||||||
|
|
Loading…
Reference in a new issue