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 > > What is the reason for dropping this particular variableĀ ? How can I get > the value of this variable from within EmacsĀ ? 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 -- t