GNU bug report logs - #63555
emacs 29 complains that it can't connect to the display

Previous Next

Package: emacs;

Reported by: Phillip Susi <phill <at> thesusis.net>

Date: Wed, 17 May 2023 13:55:03 UTC

Severity: normal

Found in version 29.0.90

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Po Lu <luangruo <at> yahoo.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: p.d.oliver <at> mavit.org.uk, 63555 <at> debbugs.gnu.org
Subject: bug#63555: emacs 29 complains that it can't connect to the display
Date: Sat, 17 Aug 2024 16:22:05 +0800
Eli Zaretskii <eliz <at> gnu.org> writes:

> Ping! Ping! Po Lu, could you please respond?
>
>> Cc: p.d.oliver <at> mavit.org.uk, 63555 <at> debbugs.gnu.org
>> Date: Sun, 04 Aug 2024 10:50:53 +0300
>> From: Eli Zaretskii <eliz <at> gnu.org>
>> 
>> Ping!  Po Lu, any comments?
>> 
>> > Cc: 63555 <at> debbugs.gnu.org
>> > Date: Sat, 20 Jul 2024 12:00:35 +0300
>> > From: Eli Zaretskii <eliz <at> gnu.org>
>> > 
>> > > Date: Sun, 14 Jul 2024 22:00:26 +0100 (BST)
>> > > From: Peter Oliver <p.d.oliver <at> mavit.org.uk>
>> > > 
>> > > FWIW, here is a patch which causes Emacs to check that at least one of the environment variables WAYLAND_DISPLAY, DISPLAY, BROADWAY_DISPLAY is set before it will try to use PGTK for its initial window.
>> > > 
>> > > This patch is not suitable for merging, because it doesn’t consider what happens if you try to use PGTK on Windows or MacOS.  However, people might find it useful if they’re not using one of those platforms.
>> > > 
>> > > This patch depends on the patch for bug 72118.
>> > 
>> > Po Lu, any comments?
>> > 
>> > 
>> > 
>> > 
>> 
>> 
>> 
>> 

This is fundamentally an improper approach because there's no predicting
what variables GTK will use in the future.  Moreover, it will prevent
Emacs from starting in some Wayland sessions where WAYLAND_DISPLAY is
sometimes not set, and where the libwayland client/GTK simply tries
`wayland-0' or aborts if it's unavailable.




This bug report was last modified 263 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.