From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.devel Subject: Re: Some environment variables disappeared for getenv Date: Thu, 15 Sep 2022 14:53:42 +0200 Message-ID: References: <87pmfwhoxp.fsf@free.fr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vb0DoWtyv7WxX2Xe" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7226"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 15 14:55:18 2022 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 1oYoOk-0001ez-2z for ged-emacs-devel@m.gmane-mx.org; Thu, 15 Sep 2022 14:55:18 +0200 Original-Received: from localhost ([::1]:44622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYoOi-0000TI-L7 for ged-emacs-devel@m.gmane-mx.org; Thu, 15 Sep 2022 08:55:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYoNO-00088A-PT for emacs-devel@gnu.org; Thu, 15 Sep 2022 08:53:54 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:43994) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYoNM-0001GP-T7 for emacs-devel@gnu.org; Thu, 15 Sep 2022 08:53:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=G0CF1TTBQNP9xRNUeelbkQ+FuL/NBV+9/ay0e3Nl0T4=; b=Dgih7lw9ZY48Q2v+4usQCEBVBc P2b6b6hwP7uTJIm0oVi5zM39CgFwsn/AQbNgKOmgL5sT0+wBKIou6ifvR4Ku0ak8TtmJNpMtfZ6Sk nkPv1qZan0RspBBVecaCGK4/U4UhksnqJk15IM/DGV8/rAfZbubPVEonUwFqtS2N9zR69EEb7EUy9 2Z3mzZtkW1YGtPOqA2L4KjQ6MqJTQ0NAj19kxfRBgg/ncA1/eh5palAFb4/npC8HtSM03v2VAtqmw q/K7XrzPPknaY4RSXO8do5VJgxYCcD5tV6L9qy43lDpQuYDuQYbiYKDlW/ZukBsXbu43DBBPi/Yni 7+VPS76Q==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1oYoNC-0002kc-E3 for emacs-devel@gnu.org; Thu, 15 Sep 2022 14:53:43 +0200 Content-Disposition: inline In-Reply-To: <87pmfwhoxp.fsf@free.fr> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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." 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" Xref: news.gmane.io gmane.emacs.devel:295414 Archived-At: --vb0DoWtyv7WxX2Xe Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 15, 2022 at 01:12:02PM +0200, Julien Cubizolles wrote: > I used to rely on getenv to get the value of $XDG_SESSION_TYPE. I > noticed that recently: > --8<---------------cut here---------------start------------->8--- > (getenv "XDG_SESSION_TYPE") > --8<---------------cut here---------------end--------------->8--- > returns nil, because this variable isn't in process-environment >=20 > What is the reason for dropping this particular variable=C2=A0? How can I= get > the value of this variable from within Emacs=C2=A0? The process that starts your Emacs has to pass it on (that's the idea of environment variables). If things changed, this is where you have to look. How is your Emacs started? Cheers --=20 t --vb0DoWtyv7WxX2Xe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCYyMgTwAKCRAFyCz1etHa RhlyAJ9Z1a8zcgqOOmjpRPCmmxFSOW7PGwCeKikDT711aLEcD2/TxTbbaki2ucQ= =JKK3 -----END PGP SIGNATURE----- --vb0DoWtyv7WxX2Xe--