Closed SuperSandro2000 closed 1 year ago
The following PATH elements are problematic:
Having non-existing directories in your $PATH
is not a problem.
Why does PATH need to be exported here?
Because Firenvim users sometimes launch their browsers in a way that results in the environment variables that they rely on in their Neovim config not being set. For example, I've been told that GDM's most recent versions do not load /etc/profile
. Another example is people setting their $PATH
in their .bashrc/.zshrc.
I need to investigate why XDG_DATA_DIRS contains /nix/store/rhqd7ir7c9fnqh5a7mb82v1wbgc2wv3b-desktops/share
That's because XDG_DATA_DIRS contained this value when you ran firenvim#install()
. I'm not familiar with nix, but perhaps you were in a specific nix shell/nix env that set this variable?
I don't think there's anything I can/should do here.
Having non-existing directories in your
$PATH
is not a problem.
Yes but the nix store paths change when updating the system and if neovim requires them they no longer work but the wrapper should append the right paths anyway. Worst case I just need to regenerate this file when updating which wouldn't be a problem.
What I tried to do
Install firenvim.
What happened
The
~/.local/share/firenvim/firenvim
script contains store paths which get eventually garbage collected when the system changes enough.The following PATH elements are problematic:
nodejs and ctags are always in the PATH through the nvim wrapper which lives at
/etc/profiles/per-user/sandro/bin/nvim
. Why does PATH need to be exported here?I need to investigate why
XDG_DATA_DIRS
contains/nix/store/rhqd7ir7c9fnqh5a7mb82v1wbgc2wv3b-desktops/share
and is not linked under/run/current-system
.Full contents of the file: