Package: emacs-pgtk
Version: 1:29.4+1-3
Severity: normal
I have Emacs installed in all of my systems. Paricularly, I have
emacs-pgtk all systems where I often use a graphical environment (and
emacs-nox in those where I don't).
Back when I used X11, if I started Emacs and had no $DISPLAY set, it
would open in a terminal. With emacs-pgtk, the behavior is not the
same:
$ emacs foobar
(emacs:3988): Gtk-WARNING **: 19:19:10.887: cannot open display:
$
This impacted me because I neede to use a remote machine to do work
via scripts (i.e. dch, debcommit) that call /usr/bin/editor and I
found impossible to hand-specify emacs to use -nw; I ended up
installing emacs-nox, but I don't find it to be an acceptable,
transparent-enough solution.
I think emacs-pgtk should behave just as emacs-gtk, falling back to
the console if a windowed environment is not found.
Thanks!
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.8.12-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages emacs-pgtk depends on:
ii dconf-gsettings-backend [gsettings-backend] 0.40.0-4+b2
ii emacs-bin-common 1:29.4+1-3
ii emacs-common 1:29.4+1-3
ii libacl1 2.3.2-2
ii libasound2t64 1.2.11-1+b1
ii libc6 2.38-13
ii libcairo2 1.18.0-3+b1
ii libdbus-1-3 1.14.10-4+b1
ii libfontconfig1 2.15.0-1.1
ii libfreetype6 2.13.2+dfsg-1+b4
ii libgccjit0 14.1.0-1
ii libgdk-pixbuf-2.0-0 2.42.12+dfsg-1
ii libgif7 5.2.2-1
ii libglib2.0-0t64 2.80.3-1
ii libgmp10 2:6.3.0+dfsg-2+b1
ii libgnutls30t64 3.8.5-4
ii libgpm2 1.20.7-11
ii libgtk-3-0t64 3.24.42-1
ii libharfbuzz0b 8.3.0-2+b1
ii libjansson4 2.14-2+b2
ii libjpeg62-turbo 1:2.1.5-3
ii liblcms2-2 2.14-2+b1
ii libotf1 0.9.16-4+b1
ii libpango-1.0-0 1.54.0+ds-1
ii libpng16-16t64 1.6.43-5
ii librsvg2-2 2.58.0+dfsg-1
ii libselinux1 3.5-2+b2
ii libsqlite3-0 3.46.0-1
ii libsystemd0 256-1
ii libtiff6 4.5.1+git230720-4
ii libtinfo6 6.5-2
ii libtree-sitter0 0.20.8-2+b1
ii libwebpdecoder3 1.4.0-0.1
ii libwebpdemux2 1.4.0-0.1
ii libxml2 2.12.7+dfsg-3
ii zlib1g 1:1.3.dfsg+really1.3.1-1
Versions of packages emacs-pgtk recommends:
ii fonts-noto-color-emoji 2.042-1
Versions of packages emacs-pgtk suggests:
pn emacs-common-non-dfsg <none>