On Thu, 25 Jul 2024 19:22:08 -0600 Gunnar Wolf wrote:
I think emacs-pgtk should behave just as emacs-gtk, falling back to
the console if a windowed environment is not found.
For those who, like me, accidentally noticed the issue: the error
message from this bug report was added to etc/PROBLEMS with the
following comments.
* Runtime problems specific to PGTK build
** Whether a display server is available cannot be automatically detected.
When started with no arguments from a text terminal and in an
environment where no display server is specified, Emacs will print:
$ emacs
(emacs:3988): Gtk-WARNING **: 19:19:10.887: cannot open display:
and exit. This is a byproduct of GTK's not providing any means of
probing for a display connection before committing to opening one, and
cannot be addressed by Emacs. Rather, users must expressly request a
text mode session:
$ emacs -nw
[...]
I have not tried to find upstream bugs for Emacs and Gtk projects.