GNOME Bugzilla – Bug 486636
"Cannot open display" message doesn't include display when set via $DISPLAY
Last modified: 2007-10-15 13:27:46 UTC
Hi, Mike Hommey reported in Debian bug http://bugs.debian.org/283076 that when opening of a display fails and the display was set via the $DISPLAY env var, the message doesn't include the display name; e.g. DISPLAY=:1 gedit gives: cannot open display: I'll attach his patch. Bye,
Created attachment 97219 [details] [review] Fixes "cannot open display" error message when display is set by env var
Looks fine; might also fix the final fallback text to be "" instead of " ".
Commited to trunk with s/" "/""/ as r18909: 2007-10-15 Loïc Minier <lool@dooz.org> * gtk/gtkmain.c: (gtk_init): Fix "cannot open display" error message when display is set by the DISPLAY env var. (#486636, Mike Hommey)