You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
Because Atom is a GUI app, I've put these environment variables in a launchagent file, as suggested in for example here. $HOME/.atom/.apm/.apmrc keeps getting created though, even when not using atom (or apm).
Unless Atom itself is doing something, the logic for creating the settings file is here. It is based on the getAtomDirectory method, which uses process.env.ATOM_HOME if it is not falsy.
I believe the package responsible is settings-view. There is a whenShellEnvironmentLoaded event in the Atom API; perhaps settings-view is causing apm to build the config folder before the ATOM_HOME variable is loaded? There's also potentially something happening here.
Can't look into it any more for now, but I hope this could be useful for someone.
Prerequisites
Description
I have the following enviroment variables:
Because Atom is a GUI app, I've put these environment variables in a launchagent file, as suggested in for example here.
$HOME/.atom/.apm/.apmrc
keeps getting created though, even when not using atom (or apm).Steps to Reproduce
$HOME/Library/LaunchAgents/environment.plist
:Make sure Atom is not running and run
launchctl load "$HOME/Library/LaunchAgents/environment.plist"
Now, when opening Atom, it uses the ATOM_HOME for config, but the file
~/.atom/.apm/.apmrc
is still created.Expected behavior:
apmrc file is created in
$ATOM_HOME/.apm/.apmrc
.Actual behavior:
apmrc file is created in
~/.atom/.apm/.apmrc
(hardcoded)Reproduces how often:
100%, but if the file is deleted (
rm -rf ~/.atom
) it does not appear immediately but after some time.Versions
MacOS: 10.15.4
Atom: 1.47.0
Electron: 5.0.13
Chrome: 73.0.3683.121
Node: 12.0.0
Additional Information
Please let me know if any additional information could be helpful!
The text was updated successfully, but these errors were encountered: