diff --git a/man/environment.d.xml b/man/environment.d.xml index 0b00296d6e5..ee83b673abf 100644 --- a/man/environment.d.xml +++ b/man/environment.d.xml @@ -45,6 +45,13 @@ parses them and updates the environment exported by the systemd user instance. See below for an discussion of which processes inherit those variables. + The user-level configuration directory defaults to ~/.config/environment.d/. + If $XDG_CONFIG_HOME is set to an absolute path in the user service manager + environment (e.g. via PAM or /etc/environment), it takes precedence over + ~/.config/. Note that this creates a bootstrapping consideration: variables + set in environment.d/ files, including $XDG_CONFIG_HOME + itself, are not available when the generator determines which directory to read. + It is recommended to use numerical prefixes for file names to simplify ordering. For backwards compatibility, a symlink to /etc/environment is