From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#72303: When emacs-pgtk fails to find a Wayland display available, it fails to run instead of opening in -nw mode Date: Fri, 26 Jul 2024 08:48:18 +0300 Message-ID: <86y15o3dr1.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21747"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72303@debbugs.gnu.org To: Gunnar Wolf , Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 26 07:49:23 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sXDpT-0005UF-49 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Jul 2024 07:49:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXDpE-0003q0-MY; Fri, 26 Jul 2024 01:49:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sXDp1-0003nu-NS for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 01:48:57 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sXDp1-0002eq-7j for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 01:48:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sXDp8-0002IX-CJ for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 01:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Jul 2024 05:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72303 X-GNU-PR-Package: emacs Original-Received: via spool by 72303-submit@debbugs.gnu.org id=B72303.17219729218806 (code B ref 72303); Fri, 26 Jul 2024 05:49:02 +0000 Original-Received: (at 72303) by debbugs.gnu.org; 26 Jul 2024 05:48:41 +0000 Original-Received: from localhost ([127.0.0.1]:38570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXDom-0002Hy-Un for submit@debbugs.gnu.org; Fri, 26 Jul 2024 01:48:41 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXDok-0002Hi-Hc for 72303@debbugs.gnu.org; Fri, 26 Jul 2024 01:48:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sXDoW-0002M2-Bh; Fri, 26 Jul 2024 01:48:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=bHAywW6Fw8GRpD2APq0Wc81pJAOpogrxrWd7y4u3KE4=; b=JaPeyH2J9K7m 0dzHrAf7JB4AQnphvC+G7suzi+QQh8yQUur7FW070Owou472hLmaSc/JoxfJnU+q8FZHvHiLDf6Mc EkUnPiUaN2h1arrypirJwAgvmP2CtQqCunC1NE5q1QDPg355AHc/FMt2lgP/0HyzmuZaL3I+ZJ447 Hyoy/LN+QcNbvdmmTIyv7/awItjuNw53XFJnqCxMqVQp71l4Y/9htLXTHa+WYyA4t0FyrxlBw8/4i vzNj5fBZ25jk952nn55mtnyX3PkzjyYGYezoy7zu5w8WGXVsbFPrtHuXOtQ8id6Dx3IdA8pRtMA0U BMLXKTBDZi5DVrOo1U5Fog==; In-Reply-To: (message from Gunnar Wolf on Thu, 25 Jul 2024 20:37:40 -0600) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:289346 Archived-At: > Date: Thu, 25 Jul 2024 20:37:40 -0600 > From: Gunnar Wolf > > Package: emacs > > 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. This is a known problem with the PGTK build, for which unfortunately there's no known solution. See bug#63555 and bug#65886. Po Lu, it sounds like we need a PROBLEMS entry for this issue, as it comes up very frequently.