Comment 44 for bug 1951491

Revision history for this message
Michael Woods (woodsy) wrote :

Updated one server from 20.10 and another from 22.04. Both got this error independently. Both using X2Go for remote desktop.

Both servers env would show DBUS_SESSION_BUS_ADDRESS as something in /tmp iirc

Long story short and a lot of rooting around..

added:
DBUS_SESSION_BUS_ADDRESS="unix:path=$XDG_RUNTIME_DIR/bus"
export DBUS_SESSION_BUS_ADDRESS="unix:path=$XDG_RUNTIME_DIR/bus"

to the end of:
/etc/X11/Xsession.d/20dbus_xdg-runtime
/etc/X11/Xsession.d/75dbus_dbus-launch
/etc/X11/Xsession.d/95dbus_update-activation-env

Probably not needed in all three files but whatever, it fixes everything...
Probably entirely related to the IF statements in those files not matching correctly to set the env variable.
Not sure if they changed on upgrade and i cbf'd checking but everything was working perfectly before upgrade.