Configure default session for GDM

Hi,

My current desktop setup is based on Rocky Linux 8 with KDE Plasma from EPEL. I’m using GDM as login manager instead of SDDM, because the latter seems to have some stability issues (random freezes on logout).

GDM seems to work nicely so far, except I have a little problem to solve. In the default setup, GDM allows the following sessions:

  • Fluxbox (I always install this to test video card configuration)
  • Standard (Wayland)
  • Custom
  • Standard (X11)
  • Plasma (X11)
  • User script

Is there any way I can configure GDM to only show the Plasma (X11) session while hiding all the others?

Alternatively, is there a way to make Plasma (X11) the default session for every user?

Here’s the problem. While GDM works fine, there’s no way to install it without fetching the whole GNOME kitchen sink and making GNOME the default session. Now I’m planning to install this in our local school, with about 100 users (and centralized authentication). What I want to avoid is having to tell every single user “choose Plasma X11 by clicking on the little thingy and before hitting Enter”. This has to be foolproof.

As far as I can tell, GDM configuration happens in /etc/gdm/custom.conf. There’s already a commented option WaylandEnable=false which conveniently disables the Wayland session if uncommented. Now if there was a way to disable all the other stuff except Plasma (or at least make Plasma the default for everybody) this would come in very handy.

Any suggestions ?