|
From: | Marcus Harnisch |
Subject: | Re: How can I (programmatically) tell if exwm is active? |
Date: | Wed, 16 Aug 2023 16:20:15 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 |
On 16/08/2023 15.39, Eric S Fraga wrote:
On Wednesday, 16 Aug 2023 at 14:37, Marcus Harnisch wrote:Check out the following environment variables:Sorry, maybe I should have been more clear: I'm looking for an elisp variable or function that tells me that exwm is active. Yes, I can drill down into the operating system (as Basile has suggested) and the process environment but I had imagined that there would something along the lines of `exwmp` or similar. I just cannot find such which I find surprising but maybe I have not searched effectively.
If such a function existed, how would it work without doing essentially the same?
You could also follow this advice: https://askubuntu.com/a/466153 But note that this will also require drilling into the OS.I'd probably not use procfs for that, since it is much harder to tell the different session apart. Less critical in single user scenarios but still...
For the record, in any case,Check out the following environment variables: DESKTOP_SESSION, XDG_SESSION_DESKTOP, GDMSESSIONnone of these environment variables gives anything useful. Obviously, I can set my own environment variable, say WM=exwm (or =stumpwm etc.) and maybe that's what I'll end up doing.
Not claiming to be an expert on these matters, it looks like at least XDG_SESSION_DESKTOP might be a common standard. So if you must roll your own, it could be a good idea to use that or one of the others.
Cheers, Marcus
[Prev in Thread] | Current Thread | [Next in Thread] |