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 16:11:05 +0800
Message-ID: <874jeaywo6.fsf@yahoo.com>
References: <87sf23rktf.fsf@free.fr> <86ttmaw3rt.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="11790"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cc: Julien Cubizolles <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 09:12:03 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 1raWqh-0002u9-LL
	for ged-emacs-devel@m.gmane-mx.org; Thu, 15 Feb 2024 09:12:03 +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 1raWq3-0005qr-6Y; Thu, 15 Feb 2024 03:11:23 -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 1raWq1-0005qP-UA
 for emacs-devel@gnu.org; Thu, 15 Feb 2024 03:11:21 -0500
Original-Received: from sonic305-20.consmr.mail.ne1.yahoo.com ([66.163.185.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 1raWpz-0000cM-Ct
 for emacs-devel@gnu.org; Thu, 15 Feb 2024 03:11:21 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1707984676; bh=BCB4B8QRRv+rrJ/crDKrQZ0g1/9ubEYBnIHwUyCrBFw=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=NowPtLxeKV7qrk+IHjHPT0wVFjF0C4pyiYKd2zDRlwAqVUjw8WfHeP9zYWDTFymIZ2Xjor7XAo4mcMAB7rkn6CSh42Ffk6/fTW4oTOQZGB9ulj4I8G6IgfrLdlrglvK0eRywy8PDZ8yXO/BzeYgoEur1wXKZ6afKn9YidHhp/6WihtOBfaZMPDPlU0QxpgsAOvT3WbTw0n8conC/1i/fWi5PI95pO75GFbkauf/yTMNVjVpza33nmHNuFEiMij/LNrtHrUiC09RrDawTjxmZUMYi+sXIwjqU59wAEpjy7EE+KWBQ+dEUD4j+OLWieQLI+204WpKuEPnvMK5/BMfFRA==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1707984676; bh=QmjbY1JZ9hfD6qaO/N7mqjiOjM7g+964MfC+Xz8EklD=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=HEbj0iyP5a/OWV14L3CsUyNTyPvrygc40Tn94cyVX9rN9IA2uX/aJfR3ZqJsl4f/mi/o6nBpmh26ssjn9ub0woi8cz1yTPkn3U+FYtfnlh2ZynbeO9YL/JpCnL/h7gdJp3sGqPQgL6vd58X2foz3F/+t6lZyGqsbdxcsjbIl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mVB5y8 
X-Sonic-MF: <luangruo@yahoo.com>
X-Sonic-ID: 418bb061-eff7-4374-a89e-879d5fb66682
Original-Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic305.consmr.mail.ne1.yahoo.com with HTTP; Thu, 15 Feb 2024 08:11:16 +0000
Original-Received: by hermes--production-sg3-6dc75bc8fb-dgkh5 (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 4d90a93ecd98cb2865bfd9e8f4778854; 
 Thu, 15 Feb 2024 08:11:11 +0000 (UTC)
In-Reply-To: <86ttmaw3rt.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 15 Feb
 2024 10:05:58 +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.185.146; envelope-from=luangruo@yahoo.com;
 helo=sonic305-20.consmr.mail.ne1.yahoo.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 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_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=unavailable 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:316222
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/316222>

Eli Zaretskii <eliz@gnu.org> writes:

>> 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" value
>> 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?

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.