Systemd doesn't import all environment variables on Ubuntu 16.04?
Khurshid Alam
khurshid.alam at linuxmail.org
Sun Jun 26 22:51:09 BST 2016
Hi,
Ubuntu doesn't install dbus-user-session package by default. But it has
dbus-x11 installed by default. When I try "systemctl --user
show-environment" it only shows few env variables. However "initctl
--user list-env" shows them all properly.
$ ps -p1 | grep systemd > /dev/null && echo systemd || echo upstart
systemd
$ systemd --v
systemd 229
$ systemctl --user show-environment
HOME=/home/pcuser
LANG=en_IN
LANGUAGE=en_IN:en
LOGNAME=pcuser
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SHELL=/bin/bash
USER=pcuser
XDG_RUNTIME_DIR=/run/user/1000
All I need is "DBUS_SESSION_BUS_ADDRESS", "DISPLAY" and "XAUTHORITY".
Even without dbus-user-session, it should import all environment
variables as it is executing "dbus-update-activation-environment
--verbose --systemd --all" from xsession.d script. Is it not? Then why
is it not importing all the variables?
Please clarify.
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20160627/fceb9dc8/attachment.html>
More information about the Pkg-systemd-maintainers
mailing list