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.devel Subject: Re: emacs pgtk doesn't set WAYLAND-DISPLAY Date: Thu, 15 Feb 2024 12:09:34 +0200 Message-ID: <86frxuvy1t.fsf@gnu.org> References: <87sf23rktf.fsf@free.fr> <86ttmaw3rt.fsf@gnu.org> <874jeaywo6.fsf@yahoo.com> 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="13700"; mail-complaints-to="usenet@ciao.gmane.io" Cc: j.cubizolles@free.fr, emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 15 11:10:15 2024 Return-path: 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 ) id 1raYh5-0003RJ-J6 for ged-emacs-devel@m.gmane-mx.org; Thu, 15 Feb 2024 11:10:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raYgV-0002nZ-2I; Thu, 15 Feb 2024 05:09:39 -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 ) id 1raYgT-0002nB-9f for emacs-devel@gnu.org; Thu, 15 Feb 2024 05:09:37 -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 ) id 1raYgS-0004z3-Se; Thu, 15 Feb 2024 05:09:36 -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=ayWesN7ogdw6LCg2flmqkAujZ+Fgt+3t3Umqs3E1i6I=; b=FrpN0LaSmzQf7+BzmrSu SmEy/DZWqMlFMlkTY1MKerGODlgFDrMTUmeIal30j98TEHwiTj4TShuxUwhSZgij4utf+irt9eSyf hpXAeZXIRKnCPPGcGyIdTDs+PfgfxONeEiPFuG+Fw1R4DXB8zUxc6oPLBXMUeiXqH+vfmbyzMiT4f PeY0uQISWV15EH7TJvZWClLESqFqwMvOnGXsy1S3aGLwaq5FVxjwLmVbUos6oaMF6z9G8BKS2Bcvw nKJPC+IQbm9sBTrMm/QedYC046Z9CNvZtJcwQNiJcGYuSCWPQATzbjxVPSSHABAm9uCxf+zFVUQkS PBAj6HP3FgANEw==; In-Reply-To: <874jeaywo6.fsf@yahoo.com> (message from Po Lu on Thu, 15 Feb 2024 16:11:05 +0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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:316226 Archived-At: > From: Po Lu > Cc: Julien Cubizolles , emacs-devel@gnu.org > Date: Thu, 15 Feb 2024 16:11:05 +0800 > > Eli Zaretskii writes: > > >> From: Julien Cubizolles > >> 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? > > 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?