[systemd-devel] comments on setting DBus addresses in pam_systemd
Kay Sievers
kay at vrfy.org
Fri Jan 10 14:20:55 PST 2014
On Sat, Jan 11, 2014 at 5:59 AM, Mantas Mikulėnas <grawity at gmail.com> wrote:
> On Fri, Jan 10, 2014 at 10:56 PM, Mantas Mikulėnas <grawity at gmail.com> wrote:
>> (a bunch of accidental HTML)
>
> Thinking about this more, it could be that it was actually broken not
> by the moved environment itself, but by my own later patches which
> tried to make the new behavior consistent. (As Environment= was
> removed from user at .service for both kdbus and non-kdbus cases, but
> only added back to pam_systemd for the kdbus case, I tried to make it
> consistent as it would have left the non-kdbus case with no
> DBUS_SESSION_BUS_ADDRESS at all.)
Yeah, I'm going to revert your patch for now, it's too early to do
that, we only want to "break-and-fix" the --enable-kdbus case, not the
normal one.
Regarding the env variables, we are currently trying to get kdbus in
the session working and I have a wild hack in:
/etc/X11/xinit/xinitrc.d/00-start-message-bus.sh
to export all the current variables to the systemd --user instance:
for i in $(compgen -e); do
systemctl --user set-environment $i=$(eval echo \$$i)
done
Kay
More information about the systemd-devel
mailing list