GNU bug report logs -
#63555
emacs 29 complains that it can't connect to the display
Previous Next
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
Message #88 received at 63555 <at> debbugs.gnu.org (full text, mbox):
>>>>> On Mon, 22 May 2023 12:44:40 -0400, Phillip Susi <phill <at> thesusis.net> said:
Phillip> This patch works for me.
Phillip> Index: b/src/dispnew.c
Phillip> ===================================================================
Phillip> --- a/src/dispnew.c
Phillip> +++ b/src/dispnew.c
Phillip> @@ -6559,8 +6558,20 @@ init_display_interactive (void)
Phillip> #ifdef HAVE_PGTK
Phillip> if (!inhibit_window_system && !will_dump_p ())
Phillip> {
Phillip> - Vinitial_window_system = Qpgtk;
Phillip> - return;
Phillip> + char *display, *wayland_display;
Phillip> + display = getenv ("DISPLAY");
Phillip> + wayland_display = getenv ("WAYLAND_DISPLAY");
Phillip> +
Phillip> + if (display == NULL && wayland_display == NULL)
Phillip> + {
Phillip> + fprintf (stderr, "Neither DISPLAY nor WAYLAND_DISPLAY are set, simulating -nw\n");
Phillip> + inhibit_window_system = 1;
Phillip> + }
Phillip> + else
Phillip> + {
Phillip> + Vinitial_window_system = Qpgtk;
Phillip> + return;
Phillip> + }
Phillip> }
Phillip> #endif
I think you need to check for them being non-empty as well
Robert
--
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.