Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Calculate env vars when launching Atom from the desktop #19138
Identify the Bug
Atom has some logic to get the correct env variables when calling directly the Atom binary (the one located in
This logic is bypassed when calling Atom via the bash CLI (the script located in
This logic assumes that entry points that don't contain the correct env vars (like a desktop launcher) will call the binary directly, while a shell script or terminal (which contain the correct env vars) will call the CLI. After #17508, this is no longer true, and this is the root cause of the issue.
Applicable issue: #18318
Description of the Change
This PR makes Atom keep using the previous logic to calculate env vars instead. To do so, it modifies the linux launcher to define the
None that I can think of.
Fixed issue inheriting environmental variables when opening Atom from the desktop on Linux.