mirror of
https://github.com/atom/atom.git
synced 2026-02-17 01:51:54 -05:00
Add --interactive option to get the user's full PATH with all the trimmings
This commit is contained in:
@@ -314,7 +314,7 @@ class Project extends Model
|
||||
|
||||
getShellEnv: ->
|
||||
shell = process.env.SHELL ? "/bin/bash"
|
||||
results = child_process.spawnSync shell, ["--login"], input: "env", encoding: "utf8"
|
||||
results = child_process.spawnSync shell, ["--login", "--interactive"], input: "env", encoding: "utf8"
|
||||
return if results.error?
|
||||
return unless results.stdout and results.stdout.length > 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user