Bug 2276822 - emacs in ssh session fails with "Gtk-WARNING ... cannot open display:"
Summary: emacs in ssh session fails with "Gtk-WARNING ... cannot open display:"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: emacs
Version: 40
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Daiki Ueno
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2344374 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-04-24 06:11 UTC by Paul Eggert
Modified: 2025-02-23 02:02 UTC (History)
10 users (show)

Fixed In Version: emacs-29.4-10.fc40
Clone Of:
Environment:
Last Closed: 2024-10-09 12:00:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNU Bug Tracker 63555 0 None None None 2024-07-08 00:29:19 UTC
GNU Bug Tracker 70590 0 None None None 2024-07-08 00:28:07 UTC

Description Paul Eggert 2024-04-24 06:11:24 UTC
Description of problem:
When I ssh into Fedora 40, I can't run Emacs unless I give it the -nw option. This is a regression, as I did not observe this problem with Fedora 39.

Version-Release number of selected component (if applicable):
Emacs 29.3

How reproducible:

Steps to Reproduce:
1. ssh into Fedora 40
2. run the shell command "emacs"
3.

Actual results:
Emacs outputs "(emacs:32326): Gtk-WARNING **: 23:02:45.536: cannot open display:" and fails.

Expected results:
A terminal-only Emacs session.

Additional info:
My terminal type is xterm-256color. If I run the shell command

env -i TERM=xterm-256color HOME=/tmp /usr/bin/emacs

I get the same error, so this does not appear to be anything in my environment.

Comment 1 Peter Oliver 2024-07-14 21:13:52 UTC
I have pushed a patch to address this to rawhide.  I will await feedback before considering it for Fedora 40.

Comment 2 Paul Eggert 2024-07-15 02:29:29 UTC
Thanks. Is it a patch that Emacs should install upstream? I can arrange for that.

(Sorry, I don't know how to find out the patch you're talking about.)

Comment 3 Peter Oliver 2024-07-15 10:36:47 UTC
(In reply to Paul Eggert from comment #2)
> Thanks. Is it a patch that Emacs should install upstream? I can arrange for
> that.

Thanks for the offer, but the patch will not be acceptable to Emacs upstream, because it does not work with the GDK quartz or win32 backends.  See the discussion at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63555

> (Sorry, I don't know how to find out the patch you're talking about.)

You can find it via the latest commit at https://src.fedoraproject.org/rpms/emacs/commits/rawhide

Comment 4 Peter Oliver 2025-02-07 20:05:59 UTC
*** Bug 2344374 has been marked as a duplicate of this bug. ***

Comment 5 Peter Oliver 2025-02-07 20:18:43 UTC
(In reply to Peter Oliver from comment #1)
> I have pushed a patch to address this to rawhide.  I will await feedback
> before considering it for Fedora 40.

I think no news is good news, here.

Comment 6 Fedora Update System 2025-02-07 22:44:52 UTC
FEDORA-2025-05c1c40684 (emacs-29.4-10.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-05c1c40684

Comment 7 Fedora Update System 2025-02-08 02:41:27 UTC
FEDORA-2025-05c1c40684 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-05c1c40684`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-05c1c40684

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2025-02-23 02:02:01 UTC
FEDORA-2025-05c1c40684 (emacs-29.4-10.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.