You are not logged in.
When I add the following to ~/.config/environment.d/
90-testval.conf
TESTVAL=FOO
and `systemctl --user daemon-reload` , it shows up when I run `systemctl --user show-environment`
However, when I add
90-bin-path.conf
PATH=$HOME/bin:$PATH
the PATH does not update.
`/usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator` shows a correct PATH.
Offline
Does not update in what context? Might it get overridden by some SHELL config that's drawn from /etc/profile.d and your shell RCs?
/etc/profile.d/path.sh
#!/bin/sh
PATH=$HOME/bin:$PATH
export PATH
chown root:root /etc/profile.d/path.sh
chmod ugo+x /etc/profile.d/path.sh
Offline
It's not updating in the context of systemd/user on a daemon-reload as evidenced by show-environment. The PATH I get is the same regardless of what I define in ~/.config/environment.d/.
Given that the generator appears to be giving me the expected PATH and other variables are being set, I figure that something is squashing my changes afterward in daemon-reload, but I'm at a loss as to how to track that down. This has worked for me in the past, but I'm setting up a new system.
Offline
https://man.archlinux.org/man/core/syst … ce_Manager
systemd uses a fixed value of "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin" in the system manager. In case of the user manager, a different path may be configured by the distribution.
I guess that refers to DefaultEnvironment in https://man.archlinux.org/man/core/syst … .conf.5.en (only)…
Offline
Ran a system update and things are suddenly working. Guess it was a bug, still not sure with what, though.
Offline