exwm as a recognized desktop manager (my KDE SDDM)

Table of Contents

For the past years I have had a little script that shuffles my ~/.profile file back and forth so that rebooting starts in exwm or not, since starting in my GUI is occasionally exactly what I need. Reviewing the exwm page1, though, I found a way of adding exwm (actually, “emacs”) to the list of “Start Session In…” options that are shown on the login screen, which bypasses the ~/.profile file entirely. The trick is to create a /usr/share/xsdessions/emacs.desktop file with contents like this:

[Desktop Entry]
Name=Emacs
Exec=emacs
Type=Application

That done, emacs is now one of the officially listed startup options (as happens, for instance, if you use i3, or Plasma, or Gnome, etc). A nice little thing that has probbly been an option forever, but I didn’t know until now.

Footnotes

1 https://github.com/ch11ng/exwm/wiki#prerequisites

Tory Anderson avatar
Tory Anderson
Full-time Web App Engineer, Digital Humanist, Researcher, Computer Psychologist