mirror of
https://github.com/atom/atom.git
synced 2026-02-17 01:51:54 -05:00
Patch process.env on startup
This commit is contained in:
@@ -230,6 +230,10 @@ class AtomEnvironment extends Model
|
||||
|
||||
checkPortableHomeWritable()
|
||||
|
||||
# Patch the `process.env` on startup to fix the problem first documented
|
||||
# in #4126
|
||||
process.env = @project.getEnv()
|
||||
|
||||
attachSaveStateListeners: ->
|
||||
saveState = => @saveState({isUnloading: false}) unless @unloaded
|
||||
debouncedSaveState = _.debounce(saveState, @saveStateDebounceInterval)
|
||||
|
||||
Reference in New Issue
Block a user