emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Some environment variables disappeared for getenv


From: Julien Cubizolles
Subject: Some environment variables disappeared for getenv
Date: Thu, 15 Sep 2022 13:12:02 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

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

What is the reason for dropping this particular variable ? How can I get
the value of this variable from within Emacs ?

-- 
Julien Cubizolles




reply via email to

[Prev in Thread] Current Thread [Next in Thread]