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: Sat, 17 Feb 2024 18:04:10 +0800
Message-ID: <87le7jxv8l.fsf@yahoo.com>
References: <87sf23rktf.fsf@free.fr> <86ttmaw3rt.fsf@gnu.org>
 <874jeaywo6.fsf@yahoo.com> <86frxuvy1t.fsf@gnu.org>
 <87ttmaxawc.fsf@yahoo.com> <864je7v4j4.fsf@gnu.org>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="14461"; 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 Sat Feb 17 11:05: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 1rbHZ8-0003Vq-L4
	for ged-emacs-devel@m.gmane-mx.org; Sat, 17 Feb 2024 11:05:02 +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 1rbHYY-0004td-Gk; Sat, 17 Feb 2024 05:04:26 -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 1rbHYW-0004tT-H8
 for emacs-devel@gnu.org; Sat, 17 Feb 2024 05:04:25 -0500
Original-Received: from sonic301-31.consmr.mail.ne1.yahoo.com ([66.163.184.200])
 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 1rbHYU-0006Gi-Vt
 for emacs-devel@gnu.org; Sat, 17 Feb 2024 05:04:24 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1708164260; bh=wnsayVoMLlLsovcHf6nMcap6X7pCasSWU93TnG7Myi8=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=HdcJTiMHwAvFKoxsy4iCE69BvdXLUV2/ywfz6RiytfyGClfu1bct80Z0jD18uMUlzQkGPJjUERY6D70GIexqSHPhu4qamQHVCgpBQqGKdNI1BubxoWOVZiwtH8cRuIHi/RHMA4cVE3AjdKefbcI05XzZdFr4SHtbcSXNJfznTaOgYXSu6LYBVww7UOFZX+kCO1spIy6JLsIfut0NSXr0yhLZQHE/NvFHeBhfu3oX8sNdwNs6BND6co01YeR8YWyeAMQL9nmNsBFmPry86bCgAXquClT8LVOnqIqH8jDJ0b7yXUJKZJXxcMFYLozJYcHky26k4yb/rJCM9eXzNuIhKw==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1708164260; bh=lbEiMsVzihJfXcb6Rti9cWJtwe30vThjEmRo0d4P0Pn=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=SFZtnWXeRx+3Uqc/+iO0QI+/CQabIugjZ7kauopn2UFxHLT8JPwsYvz7XWOTwgm0QBeNp7yOAveuXuu9yTaGAeqCOUyUuiy3eSAmNBDtxOVUVibX8tc/j4l7jKyj9BXG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ePOj34e
 SXes8nAK6_q9337Z4Ix1v20mHmi0gOGfzUlInTLJ4x 
X-Sonic-MF: <luangruo@yahoo.com>
X-Sonic-ID: 6670cec5-8abf-46d0-8489-81b402850151
Original-Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic301.consmr.mail.ne1.yahoo.com with HTTP; Sat, 17 Feb 2024 10:04:20 +0000
Original-Received: by hermes--production-sg3-6dc75bc8fb-r5vvk (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID f4f669d57b4f3a915c8eea54bcbb95d2; 
 Sat, 17 Feb 2024 10:04:16 +0000 (UTC)
In-Reply-To: <864je7v4j4.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 17 Feb
 2024 11:11:43 +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.184.200; envelope-from=luangruo@yahoo.com;
 helo=sonic301-31.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=ham 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:316262
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/316262>

Eli Zaretskii <eliz@gnu.org> writes:

> OK, so I guess the solution to this mess could only be in the
> application's own code, whereby, if WAYLAND_DISPLAY is necessary, the
> Lisp program that invokes an external utility should inject
> WAYLAND_DISPLAY into the environment, is that so?

Probably.  There's another question I neglected to ask: Julian, how are
you starting Emacs?  Emacs should inherit WAYLAND_DISPLAY from its
parent process's environment, which subprocesses will in turn inherit
with or without intervention from Emacs.