From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Eli Zaretskii <eliz@gnu.org>
Newsgroups: gmane.emacs.devel
Subject: Re: emacs pgtk doesn't set WAYLAND-DISPLAY
Date: Thu, 15 Feb 2024 10:05:58 +0200
Message-ID: <86ttmaw3rt.fsf@gnu.org>
References: <87sf23rktf.fsf@free.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="27006"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: emacs-devel@gnu.org
To: Julien Cubizolles <j.cubizolles@free.fr>, Po Lu <luangruo@yahoo.com>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 15 09:06:53 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 1raWlg-0006pX-IB
	for ged-emacs-devel@m.gmane-mx.org; Thu, 15 Feb 2024 09:06:52 +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 1raWku-0003SQ-Cu; Thu, 15 Feb 2024 03:06:04 -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 <eliz@gnu.org>) id 1raWkt-0003NY-9P
 for emacs-devel@gnu.org; Thu, 15 Feb 2024 03:06:03 -0500
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 <eliz@gnu.org>)
 id 1raWks-0007sV-VV; Thu, 15 Feb 2024 03:06:02 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=Yo9mVTE7ehQE8EDY7ohwLjyIRPRqTGuJuZqsymFJfFc=; b=ozCfkx14ti2S04DqvFx5
 LT8L09uLWpSWSLLHj9ubRvri0r/87t7dNgeh1iQKLbGQ6UUI+Y9YNjF2rvlmavPwwM0iOczQfFSdC
 LPYj4VpZGR1P6hVpf9H4t58hMmWzEqzqHVB412pt0ROsdWGYt07rkBKeJVfk3ufeYjPXfHMoXZz3l
 2+mcejss1Nru1hbAsxLodnW6q2LHu77XxqVEn9CyBW7TM2yj9zmgruSvD/kFRHXHvaHTX5zvTqFEd
 iklU/Jxi/boxlxEoLUrworRcGD1Vxd2lbSkl+ba5PTjE/giNnLHaCE2+V9UATaPxzM3EpyM683/Lv
 8s95w286xtaL8g==;
In-Reply-To: <87sf23rktf.fsf@free.fr> (message from Julien Cubizolles on Thu, 
 08 Feb 2024 17:18:36 +0100)
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:316221
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/316221>

> From: Julien Cubizolles <j.cubizolles@free.fr>
> Date: Thu, 08 Feb 2024 17:18:36 +0100
> 
> In Wayland, the following environment variables are set in a shell
> 
> WAYLAND_DISPLAY=wayland-0
> DISPLAY=:0
> 
> In Emacs built with pgtk, only DISPLAY is set, with
> DISPLAY=wayland-0.
> 
> 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).
> 
> Maybe Emacs could just copy both the WAYLAND_DISPLAY and DISPLAY
> environment variables instead of merging both ?

Po Lu, any suggestions or comments?