From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#63555: emacs 29 complains that it can't connect to the display Date: Sat, 17 Aug 2024 16:22:05 +0800 Message-ID: <87jzgfk18y.fsf@yahoo.com> References: <87ttwbawse.fsf@vps.thesusis.net> <85b0fc7b-6a6e-a780-841f-c3040bf672dc@mavit.org.uk> <86cyn8e8uk.fsf@gnu.org> <867ccwu3oi.fsf@gnu.org> <86le0v4l53.fsf@gnu.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9045"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: p.d.oliver@mavit.org.uk, 63555@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 17 10:22:58 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 1sfEiA-0002C1-7R for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Aug 2024 10:22:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfEho-0007kG-2W; Sat, 17 Aug 2024 04:22:36 -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 1sfEhl-0007jx-Qf for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2024 04:22:33 -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 1sfEhb-0003sa-IV for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2024 04:22:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=athEmO1mFQy1Bja84t9707fUh7dj669Yx6vPkPerjg8=; b=thU0opOrGILSEr6XtPyMQcXe3lY50GpAzoYpI9+KiExCAUOwjU/Tvy/Ml3pOr3MvZZVTBxasJDtHiQ9C0r+Oyp6aKBr2DNi6CD6G/G0gnhdPdtk63NubiQbKrKLPV2OUEtbpBDFd/1kcMiKxTQBzSIbdBzPXneFyCAiTfhA28BT0CrKBidGpxVcoaBZ/OTu9fUuUbZCalwoaNcr7OVdqiKtRByUZlbW68JI8qBcbNoA2ENWz/2AAzX69z7ow93FCwPq8P8cVtlsJ7NjXAxAOOjuRUKxbdaiH54CuFX6L5C2vBO9QknipqZ5ZnXfWjUZfBPyoa9kEJTN8W7CMKxCQHA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sfEiD-0000i2-SD for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2024 04:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Aug 2024 08:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63555 X-GNU-PR-Package: emacs Original-Received: via spool by 63555-submit@debbugs.gnu.org id=B63555.17238829792714 (code B ref 63555); Sat, 17 Aug 2024 08:23:01 +0000 Original-Received: (at 63555) by debbugs.gnu.org; 17 Aug 2024 08:22:59 +0000 Original-Received: from localhost ([127.0.0.1]:53420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfEiA-0000hi-Gi for submit@debbugs.gnu.org; Sat, 17 Aug 2024 04:22:58 -0400 Original-Received: from sonic305-20.consmr.mail.ne1.yahoo.com ([66.163.185.146]:41442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfEi8-0000hT-TY for 63555@debbugs.gnu.org; Sat, 17 Aug 2024 04:22:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1723882932; bh=athEmO1mFQy1Bja84t9707fUh7dj669Yx6vPkPerjg8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=lluyceRwVppIO0D82w1OVuZTEsca2gKMm1khulNLuV7ac+4bKzH9va0tKhQh9Oo46QJfhbgPjWA7uzU12LEIu1RbdSiTDwrRpv+RiDAJAyV7iu+l+aXrEcVkMT+KWz08smBm8dbUrfBIieJcHzU759cqFO0hil+/1dL/H0NiBxhsctq/B+e9rtC09sKj52iAZbjoa+Z2jeYtfdJylCK9DyBKz9b3N7FBDB8MWNFakCgFT638cI8yvhdnhaBE7PWcF3oFYtUbdTT/pPL7euwSlG61siLVIIJdG16cBzocjPnmtt27VkuBwtP9Kw92/Dih3Zk+eECBEnVay7c68wiC+g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1723882932; bh=+VD+CpEzwZFPo6v+hPikyMEo8l3LlBhGpBQHr9iRt5E=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=rTOyKYNrwex8pJNf3tODNEmpxrIY1tGuMYWfvbWdyYQam53i4fS24OfTQSN8h5ea3NlbNvzBVUTUKKGsF+2bWSTzQTA5UIc8w1Oz96tCAOB+XgJcx9BBatGVQTuj3AY9ADKtgJXVnaeIUicl9SBycKiE/11NWDqyS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709a041c-0e2a-469b-864e-1b23e1d91935 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ne1.yahoo.com with HTTP; Sat, 17 Aug 2024 08:22:12 +0000 Original-Received: by hermes--production-sg3-fc85cddf6-5gxlp (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 9d3b01c40ae92f497f40cf23dff8a15a; Sat, 17 Aug 2024 08:22:10 +0000 (UTC) In-Reply-To: <86le0v4l53.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 17 Aug 2024 11:19:04 +0300") X-Mailer: WebService/1.1.22544 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:290231 Archived-At: Eli Zaretskii writes: > Ping! Ping! Po Lu, could you please respond? > >> Cc: p.d.oliver@mavit.org.uk, 63555@debbugs.gnu.org >> Date: Sun, 04 Aug 2024 10:50:53 +0300 >> From: Eli Zaretskii >>=20 >> Ping! Po Lu, any comments? >>=20 >> > Cc: 63555@debbugs.gnu.org >> > Date: Sat, 20 Jul 2024 12:00:35 +0300 >> > From: Eli Zaretskii >> >=20 >> > > Date: Sun, 14 Jul 2024 22:00:26 +0100 (BST) >> > > From: Peter Oliver >> > >=20 >> > > FWIW, here is a patch which causes Emacs to check that at least one = of the environment variables WAYLAND_DISPLAY, DISPLAY, BROADWAY_DISPLAY is = set before it will try to use PGTK for its initial window. >> > >=20 >> > > This patch is not suitable for merging, because it doesn=E2=80=99t c= onsider what happens if you try to use PGTK on Windows or MacOS. However, = people might find it useful if they=E2=80=99re not using one of those platf= orms. >> > >=20 >> > > This patch depends on the patch for bug 72118. >> >=20 >> > Po Lu, any comments? >> >=20 >> >=20 >> >=20 >> >=20 >>=20 >>=20 >>=20 >>=20 This is fundamentally an improper approach because there's no predicting what variables GTK will use in the future. Moreover, it will prevent Emacs from starting in some Wayland sessions where WAYLAND_DISPLAY is sometimes not set, and where the libwayland client/GTK simply tries `wayland-0' or aborts if it's unavailable.