Subject: bug#70590: 29.3; PGTK emacs doesn't automatically run on the terminal when it has no graphical display

From: Eli Zaretskii <[email-masked]>
Date: Thu, 09 May 2024 10:20:47 +0300

tags 70590 wontfix
close 70590
thanks

> Cc: [email-masked]
> Date: Fri, 26 Apr 2024 14:09:33 +0300
> From: Eli Zaretskii <[email-masked]>
> 
> > Date: Fri, 26 Apr 2024 11:25:40 +0100 (BST)
> > From: Peter Oliver <[email-masked]>
> > 
> > Traditionally, if you ran Emacs from a terminal, with no graphical display available, it used that terminal for its display.  With the pure GTK build of Emacs, this only works if you explicitly specify the –-no-window-system option.  Otherwise:
> > 
> > - - - - - - -
> > $ env DISPLAY= WAYLAND_DISPLAY= emacs -Q
> > 
> > (emacs:13745): Gtk-WARNING **: 11:12:58.299: cannot open display: 
> > $ echo $?
> > 1
> > - - - - - - -
> 
> See bug#63555.  We've decided not to fix this, given the royal mess
> that GTK developers left behind, as described in the discussion of
> that bug.  The NEWS file in the Emacs 29 distribution says, inter
> alia, about the PGTK build:
> 
>   Note that, unlike the X build of Emacs, the PGTK build cannot
>   automatically switch to text-mode interface (thus emulating '-nw') if
>   it cannot determine the default display; it will instead complain and
>   ask you to invoke it with the explicit '-nw' option.
> 
> Sorry.

No further comments in 2 weeks, so I'm now closing this bug as
wontfix.