From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#54844: 29.0.50; pgtk: with --daemon, DISPLAY gets set to "wayland-0" Date: Tue, 12 Apr 2022 09:22:00 +0800 Message-ID: <87fsmjxfif.fsf@yahoo.com> References: <87wnfwa9qz.fsf@melete.silentflame.com> <87ee2477oe.fsf@yahoo.com> <878rsc77cx.fsf@yahoo.com> <87wnfvtq4g.fsf@melete.silentflame.com> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4206"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: 54844@debbugs.gnu.org To: Sean Whitton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 12 03:24:04 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 1ne5GG-0000ud-Jo for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Apr 2022 03:24:04 +0200 Original-Received: from localhost ([::1]:45852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ne5GF-0006dC-OY for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Apr 2022 21:24:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ne5FK-0005Ug-Pv for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2022 21:23:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52689) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ne5FK-0001fW-CO for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2022 21:23:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ne5FK-0003XL-8C for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2022 21:23:06 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Apr 2022 01:23:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54844 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 54844-submit@debbugs.gnu.org id=B54844.164972653813397 (code B ref 54844); Tue, 12 Apr 2022 01:23:06 +0000 Original-Received: (at 54844) by debbugs.gnu.org; 12 Apr 2022 01:22:18 +0000 Original-Received: from localhost ([127.0.0.1]:46562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ne5EY-0003U1-Cx for submit@debbugs.gnu.org; Mon, 11 Apr 2022 21:22:18 -0400 Original-Received: from sonic314-21.consmr.mail.ne1.yahoo.com ([66.163.189.147]:45670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ne5EU-0003T8-Eb for 54844@debbugs.gnu.org; Mon, 11 Apr 2022 21:22:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649726528; bh=aDWUtl/wYjqmpnqez/z/70S3DDRofera/g9aNxstac4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=R1gMKJziYJ8UxkTptjKwbsv6qoQLknBDpH1CpufIDOKQn/w7bgO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79YSSsydlSA4N1bgRmfDPdjpGWjiCmT yoUMzMg0AS4NIb0Gljc3bPTXoWfMF6FUKd73D_fjqfTyLUf_TAGaUH4exqcc9ATuvV99rGNMKhTK MLiDOfjmltEVjvZvL6PEREBCifql22wDbI9Z4oCLU4TQ1YVFljds5WbxHSDCJMdi8I4on5gNOiJQ mkjLrD4FEDD33I95Q9PlQWhk5CJ1QOmUupzZLHf217.mRDQ64Q.guyYp3oGMkn1o78sxph1TxnUK cS.F.Z6HSg3xORxzFVZ1sCh63mg7T3qX3uvarMYtVA1bQQl9c4VaC5WdgjDQieKBz05j2gRORlRj rNRcnSCVLi54Q82HI4Suqbdm9W2RQla7_FlX9kaauvJ.fyF0RvLttppdgkwnh0I5toY74cuimkvZ MCYq5_0Jhc96OyI0NLoPsYFkp.0kDGpi8zs5x8TdFZwLD.JptnGfSJ2IM9tXWR73SkuJn09XgIBj RkWsSpteA.NP8XUhrETR13w6nAbEe8S6jdeOMsRdludhga46VYEeIFceDUq1erDRpS2lEJ3BJM2p e4Ru1wsp_Rt8Zt5WeagpJ6PD66p4Ey956r.4.yaND6 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Tue, 12 Apr 2022 01:22:08 +0000 Original-Received: by hermes--canary-production-sg3-65d7bd97b5-c48mf (VZM Hermes SMTP Server) with ESMTPA ID f29c558746973048aaafbc812dcfeb6e; Tue, 12 Apr 2022 01:22:04 +0000 (UTC) In-Reply-To: <87wnfvtq4g.fsf@melete.silentflame.com> (Sean Whitton's message of "Mon, 11 Apr 2022 11:46:23 -0700") X-Mailer: WebService/1.1.20048 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:229742 Archived-At: Sean Whitton writes: > Thank you for the patch, but unfortunately I can still reproduce the > problem using my original recipe. I missed something, sorry, what if you apply this in addition to the other patch? diff --git a/src/callproc.c b/src/callproc.c index 0922e10f01..df673311d6 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -1687,6 +1687,7 @@ getenv_internal (const char *var, ptrdiff_t varlen, char **value, /* For DISPLAY try to get the values from the frame or the initial env. */ if (strcmp (var, "DISPLAY") == 0) { +#ifndef HAVE_PGTK Lisp_Object display = Fframe_parameter (NILP (frame) ? selected_frame : frame, Qdisplay); if (STRINGP (display)) @@ -1695,6 +1696,7 @@ getenv_internal (const char *var, ptrdiff_t varlen, char **value, *valuelen = SBYTES (display); return 1; } +#endif /* If still not found, Look for DISPLAY in Vinitial_environment. */ if (getenv_internal_1 (var, varlen, value, valuelen, Vinitial_environment)) Thanks.