[systemd-devel] "systemd-path systemd-search-user-unit" does not match reality

Vladimir Panteleev git at vladimir.panteleev.md
Fri Jul 26 17:36:27 UTC 2024


On Fri, 26 Jul 2024 at 12:50, Vladimir Panteleev
<git at vladimir.panteleev.md> wrote:
> cat > ~/.config/systemd/user.conf <<EOF
> [Manager]
> ManagerEnvironment="XDG_DATA_DIRS=%h/.nix-profile/share"
> EOF

Amendment - the above may break stuff (e.g. nautilus, eog), a better value is:

ManagerEnvironment="XDG_DATA_DIRS=%h/.nix-profile/share:/usr/local/share:/usr/share"

It looks like these variables are also inherited by some child processes.


More information about the systemd-devel mailing list