SDDM, X11 & Wayland: Rocky Linux 8 vs. 9

Hi,

I’ve written a series of Ansible roles put together in a a playbook to install a desktop client based on Rocky Linux and KDE from EPEL, starting from a minimal installation. So far this works perfectly under Rocky Linux 8:

One thing I do in the configure_sddm role is define Plasma X11 as the default session, simply by putting the following little configuration stub in /etc/sddm.conf.d/x11.conf:

[General]
DisplayServer=x11

After rebooting, SDDM defaults indeed to X11, which is what I want.

Curiously enough, I don’t get the same behaviour with Rocky Linux 9. After the initial reboot, SDDM defaults to Plasma Wayland, even though I’ve added the configuration stub above.

The Plasma X11 session does appear in SDDM’s menu, but I’d like it to appear as the default.

Any suggestions ?

I’ll answer that myself, since I just found the solution to my problem:

- name: Don't show Wayland session in SDDM
  ansible.builtin.lineinfile:
    path: /usr/share/wayland-sessions/plasma.desktop
    line: NoDisplay=true

Cheers,

Niki

2 Likes

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.