Bug#795761: 50-systemd-user.sh not being run during Xsession startup

Felipe Sateler fsateler at debian.org
Fri Nov 20 18:25:16 GMT 2015


On Sun, 16 Aug 2015 18:57:40 +0200 Michael Biebl <biebl at debian.org> wrote:
> Package: systemd
> Version: 224-1
> Severity: normal
> File: /etc/X11/xinit/xinitrc.d/50-systemd-user.sh
>
> On Debian, there is apparently no support for /etc/X11/xinit/xinitrc.d/.
> So 50-systemd-user.sh is not run during X session startup.
> If this is a Fedora specific directory, it might be worth filing this
> bug upstream also.
>
> We should investigate, whether we actually need that script and if so,
> how to run it. And if not, we should drop it.

If we need to run it, it should be placed in /etc/Xsession.d/.

That script does two things: 1, it injects X variables into the user
instance, and 2, it injects them into the dbus activation mechanism
for the session (or user) instance.

There are currently 2 related scripts:


/etc/X11/Xsession.d/20dbus_xdg-runtime

Provided by dbus-user-session, it injects DISPLAY and XAUTHORITY into
the user dbus instance. However, because it passes --systemd to
dbus-update-activation-environment, they should be propagated as well
to the systemd user instance.

/etc/X11/Xsession.d/95dbus_update-activation-env

Provided by dbus-x11, this injects *all* environment variables to both
dbus and systemd.


And indeed, I see that my user instance has lots of environment
variables that really don't come from systemd itself (some arguably
shouldn't):


DBUS_SESSION_BUS_ADDRESS=
DESKTOP_SESSION=
GPG_AGENT_INFO=
DISPLAY=
LOGNAME=
OLDPWD=
PWD=
SHELL=
SHLVL=
USER=
XAUTHORITY=
_=


In summary, I think it is safe to drop that file. Usages of X without
dbus-x11 installed should be rare.


Saludos



More information about the Pkg-systemd-maintainers mailing list