After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 744946 - $DISPLAY missing from dbus environment
$DISPLAY missing from dbus environment
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
3.15.x
Other Linux
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2015-02-22 12:33 UTC by Mantas Mikulėnas (grawity)
Modified: 2015-02-22 21:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch? (984 bytes, patch)
2015-02-22 21:04 UTC, Mantas Mikulėnas (grawity)
committed Details | Review

Description Mantas Mikulėnas (grawity) 2015-02-22 12:33:35 UTC
After logging in to an X11 session, bus-activated apps cannot be started (e.g. gnome-terminal) because $DISPLAY is not present in their environment.

gdm 3.15.90.3
Comment 1 Ray Strode [halfline] 2015-02-22 20:10:15 UTC
Fix should be simple. Just need to make sure the x server is spawned before the bus daemon in gdm-x-session.c and set DISPLAY in the DBus GSubProcessLauncher
Comment 2 Mantas Mikulėnas (grawity) 2015-02-22 21:04:07 UTC
Created attachment 297605 [details] [review]
patch?

Tried to fix this, I have no idea what I'm doing but it looks like spawn_bus() is already called after spawn_x_server() so adding the 'setenv's to the former did work for me.
Comment 3 Ray Strode [halfline] 2015-02-22 21:56:58 UTC
Looks good, thanks !