From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton Newsgroups: gmane.emacs.bugs Subject: bug#54844: 29.0.50; pgtk: with --daemon, DISPLAY gets set to "wayland-0" Date: Sun, 10 Apr 2022 14:50:28 -0700 Message-ID: <87wnfwa9qz.fsf@melete.silentflame.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12799"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: luangruo@yahoo.com To: 54844@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 10 23:51:21 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ndfSp-000358-CR for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Apr 2022 23:51:21 +0200 Original-Received: from localhost ([::1]:36376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndfSn-0000hC-Va for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Apr 2022 17:51:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndfSY-0000ep-Rq for bug-gnu-emacs@gnu.org; Sun, 10 Apr 2022 17:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47865) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndfSY-0005Sl-IS for bug-gnu-emacs@gnu.org; Sun, 10 Apr 2022 17:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ndfSY-0003wY-BS; Sun, 10 Apr 2022 17:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sean Whitton Original-Sender: "Debbugs-submit" Resent-CC: luangruo@yahoo.com, bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Apr 2022 21:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54844 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: luangruo@yahoo.com Original-Received: via spool by submit@debbugs.gnu.org id=B.164962743815120 (code B ref -1); Sun, 10 Apr 2022 21:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Apr 2022 21:50:38 +0000 Original-Received: from localhost ([127.0.0.1]:41762 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndfS9-0003vn-S3 for submit@debbugs.gnu.org; Sun, 10 Apr 2022 17:50:38 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:52122) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndfS8-0003vg-CG for submit@debbugs.gnu.org; Sun, 10 Apr 2022 17:50:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53638) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndfS7-0000aZ-Vm for bug-gnu-emacs@gnu.org; Sun, 10 Apr 2022 17:50:36 -0400 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:57939) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndfS6-0005PO-2P for bug-gnu-emacs@gnu.org; Sun, 10 Apr 2022 17:50:35 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 5CF4432009E5 for ; Sun, 10 Apr 2022 17:50:30 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sun, 10 Apr 2022 17:50:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm3; bh=e MseXM4sJpS10h6SvTHb19Iey5Z8THKkqJHJL4OWnO0=; b=BT+bQZ56Er/VC+xjK XPhGdKqw57FwB0T3uh/EC41juXZdbocmTtapTN2iX/pjH37DkfxADIrwSon+8npe s0fPwGf0+OBYtvLZ6xQAVHYH0JXI37ETxeB1D3KaJwrgmwMxYOq9MfjuT0lqTps4 vmPici+EKyhYHD7EVvSNoh8n0IIHFAWzdRdT519AT3Qmy4bc6lmnx8PW5BLQQeD2 sjcWdMe5eBY4YuEXEMiyFOcuWWhPIvlTvggVI0gtGsf2OyhkyznHWAanIvArFCX3 h/Ly+Pj8+mbUMM2CaFgRa/tlQ/BPIjRS30MBddYwRPiDVR2kkAhdN5CJjgUVugPd WCBSA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=eMseXM4sJpS10h6SvTHb19Iey5Z8THKkqJHJL4OWn O0=; b=errKVDdChR4n1qsW4ZFR2DGsBcAZNCmZ6wMHipCVLf49kKlToZ8vYGGC5 8iMPBODsq5BWQi93IA4dZv1llmtEQFcLmf2D5h7ra4stx1CoCMDRN3Upn0bjzD9x oYaUrEQgxlFT+2312tPqQZ4TReNrdbVHrzQ4PFA0nAdM5DZoZjjnG+axiWyjMepN GpHo4ZB9Yy2UnkUruGGNKhrpdMctlaMv4yKxrgP6HW7klVNHBW5fX+iTbqb8qbeq nueqClBODzAfUJpirt5uJ3zBCaNT0igS8YhTyz0bX5qep4j6iUl+ajktgXKqs+Jr FRbdAZrXMxbD/Z5WJdiO9FczssaUA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudekgedgudeifecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufgffffkgggtsehttddttd dtredtnecuhfhrohhmpefuvggrnhcuhghhihhtthhonhcuoehsphifhhhithhtohhnsehs phifhhhithhtohhnrdhnrghmvgeqnecuggftrfgrthhtvghrnhepkeffveegfeetvdetud fhtefffeefheehkeejfeehieffvdejleeltedtueeivdeinecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshhpfihhihhtthhonhesshhpfihhih htthhonhdrnhgrmhgv X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 10 Apr 2022 17:50:29 -0400 (EDT) Original-Received: by melete.silentflame.com (Postfix, from userid 1000) id A68E67E3C53; Sun, 10 Apr 2022 14:50:28 -0700 (MST) Received-SPF: pass client-ip=64.147.123.21; envelope-from=spwhitton@spwhitton.name; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:229689 Archived-At: In a terminal emulator where DISPLAY is ":0", 1. src/emacs --daemon -Q 2. lib-src/emacsclient -c 3. M-: (getenv "DISPLAY") RET Value is "wayland-0" instead of ":0". This is under Sway on Debian. The problem does not occur if you launch without --daemon and then use M-x server-start. Seems similar to #53969. I tried commenting out the only other Lisp code which does (setenv "DISPLAY" ...) but that does not help. So seems like it is in C somewhere. -- Sean Whitton