GNOME Bugzilla – Bug 761568
daemon: support dbus user buses with X sessions
Last modified: 2016-05-04 18:39:26 UTC
If the dbus user bus was started when the user first logged in, before the session was started, then that dbus daemon won't have DISPLAY and XAUTHORITY in its activation environment. This means programs activated from that dbus daemon also won't have DISPLAY and XAUTHORITY in their activation environments. This commit changes GDM to explicitly put the two variables in the activation environment via D-Bus, rather than sending them into the bus environment process when launching the bus (since in the case of the user bus, we don't launch it).
Created attachment 320464 [details] [review] daemon: support dbus user buses with X sessions
Attachment 320464 [details] pushed as 99eeae9 - daemon: support dbus user buses with X sessions
Created attachment 327312 [details] [review] daemon: import DISPLAY into user bus commit 99eeae91c1f11997521ad3bc016a7b2d23ec7942 attempted to support dbus user buses with X sessions, by supposedly importing DISPLAY and XAUTHORITY into the dbus user bus activation environment. It didn't actually work, though, because the spawn_bus function quits early if the dbus daemon is already running. This commit fixes the code so that the activation environment is always updated.
Attachment 327312 [details] pushed as d1820d8 - daemon: import DISPLAY into user bus