[systemd-devel] Help on Automatic Symlink XDG_DATA_HOME

systemdkiosk at yopmail.com systemdkiosk at yopmail.com
Wed Nov 6 01:21:38 PST 2013


Kind thanks, Zbyszek. Forgive init script habits. Systemd docs need
execution flowcharts. Maybe a wiki for best practice XDG? Setting up
users is basic sysadmin.

Reviewing pam_env, is /etc/environment a decent place to set XDG vars?
$USER works from there, yes? I guess $HOME/.pam_environment could serve
as well, but I'd prefer central XDG config for all users based on $USER
differentiation.

I got your test call working sans --user. Haven't looked hard but here's
the dump. This box is quite clean; pure systemd Arch Linux, no legacy
cruft (except what's bouncing in my brain).

$ systemctl show-environment

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
LANG=en_US.UTF-8
LANGUAGE=en
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8

$ systemctl --user show-environment

Failed to issue method call: Process /bin/false exited with status 1

$ ps ax | grep "systemd --user" -

 306 ?        Ss     0:00 /usr/lib/systemd/systemd --user
6719 pts/0    R+     0:00 grep systemd --user -

$ pacman -Q systemd

systemd 208-2

-- 
http://www.fastmail.fm - A no graphics, no pop-ups email service



More information about the systemd-devel mailing list