Don't mess up with browser process's execArgv, fixes #492.

This commit is contained in:
Cheng Zhao 2014-07-31 16:58:59 +08:00
parent e62986b97d
commit fba1772000

View file

@ -14,7 +14,7 @@ process.argv.splice 1, 1
# Pick out switches appended by atom-shell.
startMark = process.argv.indexOf '--atom-shell-switches-start'
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,
# which contains javascript part of Atom's built-in libraries.