GNU bug report logs - #70590
29.3; PGTK emacs doesn't automatically run on the terminal when it has no graphical display

Previous Next

Package: emacs;

Reported by: Peter Oliver <lists.gnu.org <at> mavit.org.uk>

Date: Fri, 26 Apr 2024 10:27:03 UTC

Severity: normal

Tags: wontfix

Found in version 29.3

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 70590 in the body.
You can then email your comments to 70590 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#70590; Package emacs. (Fri, 26 Apr 2024 10:27:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Peter Oliver <lists.gnu.org <at> mavit.org.uk>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 26 Apr 2024 10:27:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Peter Oliver <lists.gnu.org <at> mavit.org.uk>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.3; PGTK emacs doesn't automatically run on the terminal when it
 has no graphical display
Date: Fri, 26 Apr 2024 11:25:40 +0100 (BST)
[Message part 1 (text/plain, inline)]
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
- - - - - - -


In GNU Emacs 29.3 (build 1, x86_64-redhat-linux-gnu, GTK+ Version
 3.24.41, cairo version 1.18.0) of 2024-04-26 built on
 cabaf4098b994f6da8ef60f3f6652faa
System Description: Fedora Linux 40 (Workstation Edition)

Configured using:
 'configure --build=x86_64-redhat-linux-gnu
 --host=x86_64-redhat-linux-gnu --program-prefix=
 --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr
 --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
 --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64
 --libexecdir=/usr/libexec --localstatedir=/var --runstatedir=/run
 --sharedstatedir=/var/lib --mandir=/usr/share/man
 --infodir=/usr/share/info --with-cairo --with-dbus --with-gif
 --with-gpm=no --with-harfbuzz --with-jpeg --with-json --with-modules
 --with-native-compilation=aot --with-pgtk --with-png --with-rsvg
 --with-sqlite3 --with-tiff --with-tree-sitter --with-webp --with-xpm
 --with-xwidgets build_alias=x86_64-redhat-linux-gnu
 host_alias=x86_64-redhat-linux-gnu CC=gcc 'CFLAGS=-DMAIL_USE_LOCKF -O2
 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches
 -pipe -Wall -Werror=format-security
 -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS
 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64
 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
 -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
 LDFLAGS=-Wl,-z,relro
 PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig CXX=g++
 'CXXFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g
 -grecord-gcc-switches -pipe -Wall -Werror=format-security
 -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS
 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64
 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
 -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY
PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM XWIDGETS GTK3 ZLIB

Important settings:
  value of $LANG: en_GB.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

-- 
Peter Oliver

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#70590; Package emacs. (Fri, 26 Apr 2024 11:11:04 GMT) Full text and rfc822 format available.

Message #8 received at 70590 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Peter Oliver <lists.gnu.org <at> mavit.org.uk>
Cc: 70590 <at> debbugs.gnu.org
Subject: Re: bug#70590: 29.3;
 PGTK emacs doesn't automatically run on the terminal when it has no
 graphical display
Date: Fri, 26 Apr 2024 14:09:33 +0300
> Date: Fri, 26 Apr 2024 11:25:40 +0100 (BST)
> From: Peter Oliver <lists.gnu.org <at> mavit.org.uk>
> 
> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#70590; Package emacs. (Thu, 09 May 2024 07:22:01 GMT) Full text and rfc822 format available.

Message #11 received at 70590 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: lists.gnu.org <at> mavit.org.uk
Cc: 70590 <at> debbugs.gnu.org
Subject: Re: bug#70590: 29.3;
 PGTK emacs doesn't automatically run on the terminal when it has no
 graphical display
Date: Thu, 09 May 2024 10:20:47 +0300
tags 70590 wontfix
close 70590
thanks

> Cc: 70590 <at> debbugs.gnu.org
> Date: Fri, 26 Apr 2024 14:09:33 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> 
> > Date: Fri, 26 Apr 2024 11:25:40 +0100 (BST)
> > From: Peter Oliver <lists.gnu.org <at> mavit.org.uk>
> > 
> > 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.




Added tag(s) wontfix. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 09 May 2024 07:28:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 70590 <at> debbugs.gnu.org and Peter Oliver <lists.gnu.org <at> mavit.org.uk> Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 09 May 2024 07:28:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 06 Jun 2024 11:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 10 days ago.

Previous Next


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