Move env assignment into parseCommandLine

A bit of a misnomer but makes things more testable so I’ll accept it
until we can do more overhaul.
This commit is contained in:
Nathan Sobo
2016-08-11 14:30:22 -06:00
parent 52ea92803d
commit 324e8d6c7a
2 changed files with 1 additions and 2 deletions

View File

@@ -21,7 +21,6 @@ console.log = require('nslog')
function start () {
const args = parseCommandLine(process.argv.slice(1))
args.env = process.env
setupAtomHome(args)
setupCompileCache()

View File

@@ -130,7 +130,7 @@ module.exports = function parseCommandLine (processArgs) {
resourcePath, devResourcePath, pathsToOpen, urlsToOpen, executedFrom, test,
version, pidToKillWhenClosed, devMode, safeMode, newWindow, logFile, socketPath,
userDataDir, profileStartup, timeout, setPortable, clearWindowState,
addToLastWindow, mainProcess
addToLastWindow, mainProcess, env: process.env
}
}