From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Po Lu <luangruo@yahoo.com>
Newsgroups: gmane.emacs.devel
Subject: Re: emacs pgtk doesn't set WAYLAND-DISPLAY
Date: Thu, 15 Feb 2024 18:46:43 +0800
Message-ID: <87ttmaxawc.fsf@yahoo.com>
References: <87sf23rktf.fsf@free.fr> <86ttmaw3rt.fsf@gnu.org>
 <874jeaywo6.fsf@yahoo.com> <86frxuvy1t.fsf@gnu.org>
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="4993"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cc: j.cubizolles@free.fr,  emacs-devel@gnu.org
To: Eli Zaretskii <eliz@gnu.org>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 15 11:47:48 2024
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
Envelope-to: ged-emacs-devel@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 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1raZHP-00013D-Vp
	for ged-emacs-devel@m.gmane-mx.org; Thu, 15 Feb 2024 11:47:47 +0100
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-devel-bounces@gnu.org>)
	id 1raZGd-0000uO-Uo; Thu, 15 Feb 2024 05:46:59 -0500
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 <luangruo@yahoo.com>)
 id 1raZGc-0000u6-4N
 for emacs-devel@gnu.org; Thu, 15 Feb 2024 05:46:58 -0500
Original-Received: from sonic304-20.consmr.mail.ne1.yahoo.com ([66.163.191.146])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <luangruo@yahoo.com>)
 id 1raZGa-0006ZO-JW
 for emacs-devel@gnu.org; Thu, 15 Feb 2024 05:46:57 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1707994014; bh=90i/ewovLfbtMwMCkix30LSn3UpHN8xQL/+fpaoHqLU=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=FGE9DHq8TriN52xYjx9ZpOtFUX8NXxtMDpg0XpsOB4UBPjMpPiaql/pR3B+ZwXM9N6LXWBM89QvDsc1Rnr5hRB0lMAwIA/IzxFhAWQRZHfdMtHaNmrRnW/Q5gzTfXc4JH/Fu7yP425QtSBSDeRRvndxb7Ntrl/gRfdTlEnCmPbNFHFe8bBwHnHGCwTez3vznLns8Q2CRM/oAu4Hks0YoIGgFeJ+OwYUTlG9lmqpeRa/J/8Pe2QYvrF19eeKXrV0/E1mC32meXo5Emo/4+FiMbO2TPgY73/jiXAL3b/W5BFteJF0BgW1mht+C8ERaNq3S2K0AoaMpzNoSzyVep6dQTg==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1707994014; bh=4/+vCD8xuGLl12BsEvSeLe1Am0b612ccCzz5PGDR0cx=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=L4+n9GZ+fScI04DjBHwUD76QjFF4MwU5VeeDcXC9ku4QfYIny0RwRsLoS3LfMWd6fp9SE8n5O7bmixVH7aVseF/AJhWBEmjG307NK4DpuPulEK3kwMayEvc93Ob3N9QkowracLWrUIV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cF7qobj.0Gca.zJ4drZ77yNE8OpqQx_VnDkj7_vyk 
X-Sonic-MF: <luangruo@yahoo.com>
X-Sonic-ID: bb8e197e-976d-4f0c-8af1-7c619563017d
Original-Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic304.consmr.mail.ne1.yahoo.com with HTTP; Thu, 15 Feb 2024 10:46:54 +0000
Original-Received: by hermes--production-sg3-6dc75bc8fb-n9pfz (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 77b08c9fb3cdb4c1da17d0d96465ace8; 
 Thu, 15 Feb 2024 10:46:50 +0000 (UTC)
In-Reply-To: <86frxuvy1t.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 15 Feb
 2024 12:09:34 +0200")
X-Mailer: WebService/1.1.22077
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Received-SPF: pass client-ip=66.163.191.146; envelope-from=luangruo@yahoo.com;
 helo=sonic304-20.consmr.mail.ne1.yahoo.com
X-Spam_score_int: -7
X-Spam_score: -0.8
X-Spam_bar: /
X-Spam_report: (-0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_BL_SPAMCOP_NET=1.347, RCVD_IN_DNSWL_NONE=-0.0001,
 RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no
X-Spam_action: no action
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Xref: news.gmane.io gmane.emacs.devel:316228
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/316228>

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Po Lu <luangruo@yahoo.com>
>> Cc: Julien Cubizolles <j.cubizolles@free.fr>,  emacs-devel@gnu.org
>> Date: Thu, 15 Feb 2024 16:11:05 +0800
>>=20
>> Eli Zaretskii <eliz@gnu.org> writes:
>>=20
>> >> From: Julien Cubizolles <j.cubizolles@free.fr>
>> >> Date: Thu, 08 Feb 2024 17:18:36 +0100
>> >>=20
>> >> In Wayland, the following environment variables are set in a shell
>> >>=20
>> >> WAYLAND_DISPLAY=3Dwayland-0
>> >> DISPLAY=3D:0
>> >>=20
>> >> In Emacs built with pgtk, only DISPLAY is set, with
>> >> DISPLAY=3Dwayland-0.
>> >>=20
>> >> I don't know if there is a good reason for that but it causes the
>> >> matplotlib python program to fail as it seems to expect a "valid" val=
ue
>> >> for DISPLAY or WAYLAND_DISPLAY to be set (see
>> >> https://github.com/matplotlib/matplotlib/issues/18377).
>> >>=20
>> >> Maybe Emacs could just copy both the WAYLAND_DISPLAY and DISPLAY
>> >> environment variables instead of merging both=C2=A0?
>> >
>> > Po Lu, any suggestions or comments?
>>=20
>> I think this is was Emacs's treatment of WAYLAND_DISPLAY until we
>> received several bug reports that couldn't be resolved except by
>> refraining from changing that variable.
>
> Can you point to some of those bug reports?

bug#53969 comes to mind, though several more problems were reported, to
both this list and the bug tracker.