mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-19 23:17:16 +03:00
Override and restore ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT
This commit is contained in:
parent
b3ab30dcf5
commit
9af51897f0
@ -333,6 +333,7 @@ class LaunchScenario {
|
||||
this.filePathPool = new Map()
|
||||
|
||||
this.originalAtomHome = process.env.ATOM_HOME
|
||||
this.originalDisableShellingOutForEnvironment = process.env.ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT
|
||||
}
|
||||
|
||||
async init () {
|
||||
@ -401,6 +402,8 @@ class LaunchScenario {
|
||||
})
|
||||
}))
|
||||
)
|
||||
|
||||
process.env.ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT = 'true'
|
||||
}
|
||||
|
||||
async preconditions (source) {
|
||||
@ -565,6 +568,7 @@ class LaunchScenario {
|
||||
await this.clearElectronSession()
|
||||
|
||||
process.env.ATOM_HOME = this.originalAtomHome
|
||||
process.env.ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT = this.originalDisableShellingOutForEnvironment
|
||||
}
|
||||
|
||||
addApplication (options = {}) {
|
||||
|
Loading…
Reference in New Issue
Block a user