From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: help-gnu-emacs@gnu.org
Subject: Re: How can I (programmatically) tell if exwm is active?
Date: Wed, 16 Aug 2023 15:34:57 +0100 [thread overview]
Message-ID: <87pm3ndpim.fsf@ucl.ac.uk> (raw)
In-Reply-To: ubiluv$nr3$1@ciao.gmane.io
On Wednesday, 16 Aug 2023 at 16:20, Marcus Harnisch wrote:
> If such a function existed, how would it work without doing
> essentially the same?
Well, not necessarily: I would have thought that invoking exwm-enable
would set some flag (i.e. an elisp global variable) but it does not look
like it does, having gone through the code. Oh well, never mind!
> 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.
Again, for the record, as I do not use a desktop environment, this
variable is set to "lightdm-session" regardless of the window manager I
start up from my .xsession file.
But thank you for your suggestions. I've gone with (getenv "WM") in my
.emacs, where WM is the environment variable I use in my .xsession to
store the name of the window manager I choose during startup of the X
session. I just had to make sure I "exported" that variable. Very easy
and pretty much what you were suggesting except with my own variable.
Thanks again,
eric
--
Eric S Fraga via gnus (Emacs 30.0.50 2023-08-14) on Debian 12.1
prev parent reply other threads:[~2023-08-16 14:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-16 10:27 How can I (programmatically) tell if exwm is active? Eric S Fraga
2023-08-16 11:27 ` Basile Starynkevitch
2023-08-16 12:37 ` Marcus Harnisch
2023-08-16 13:39 ` Eric S Fraga
2023-08-16 14:20 ` Marcus Harnisch
2023-08-16 14:34 ` Eric S Fraga [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pm3ndpim.fsf@ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).