Subject: bug#65886: 29.1; pgtk emacs should assume --no-window-system when there is no window system

From: Björn Bidar <[email-masked]>
Date: Tue, 12 Sep 2023 21:02:42 +0300

Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <[email-masked]> writes:

>> Non-pgtk GTK emacs does this, i.e. this is a regression/inconsistency.
>
> This is because here, Emacs knows exactly which GDK backend will be
> loaded (X11) and what environment variable to check.

Would it make sense for Emacs to first check if $WAYLAND_DISPLAY or
$DISPLAY is set or $XDG_RUNTIME_DIR/wayland-0 is present?