How do I remove the x11 session?

I think I’ve used wayland for long enough to be sure that I don’t need the x11 session. Is there a clean way of removing it on Arch Linux without breaking the wayland session?

1 Like

@FernandoMMuniz:

You could, possibly, use the Arch Linux pacman to check the package dependencies –
<Dependencies of a package>
<pacman/Tips and tricks>

Unfortunately, plasma appears to depend on many xorg packages, and also there is no option for deleting a session type [yet, you can if you want to make a feature request [I cannot say anything how well it will go lol, or if it will be considered]] [also doesn’t make that much sense, having another session type isnt a whale trying to fit into your drive]

How Fedora’s KDE spin not have a X11 session?

X11 is the only lifesaver when Wayland is broken, and also the only way to use KDE Plasma on some old hardware, normally it should never be removed and stay as safe mode.

Fedora is just testing ground for the commercial Red Hat Enterprise Linux., so most of what they do is always not driven by the community.

Wayland breaking wouldn’t affect me because I have all my files backed up and I have a single long command that installs everything, my notebook is from 2023, and I’m using Arch because it’s bleeding edge.

Anyway, seems like it’s not possible (in a streamlined way) yet.

Well you are well prepared and have enough time to reinstall and reconfigure your whole system and applications, unlike average users who are not aware of such measures and don’t have time to do it from scratch each time things broke, for example 6.2 broke Wayland and I was unable to work on my laptop for many hours until I remembered I still have X11 which made it easy to continue using my system and getting things done while waiting for Wayland to be fixed.

1 Like

And some other just use things like timeshift, and know how to use that even “chrooted” from a USB-livesystem boot. When 6.2.1 wayland broke my system I was back at a running 6.2.0 10-15 Minutes later, and that included 5-10 fiddling around with the problem first.

But to the Topic.
Unless I desperately need the disk storage I would not even care and just leave X11 unused.

1 Like

Presumably, there were enough developers and testers involved to ensure that, the removal of the X11 components would not affect the system’s operation.

  • Given the financing of Fedora Project, one could presume that, paid developers and testers were involved …

IMO there are enough examples of the Fedora Project’s actions diverging from anything that Red Hat/IBM would commercially care about (Btrfs as default even though RHEL moved away from it, caring about KDE at all even though RHEL only officially supports GNOME) that I don’t assume “Red Hat demand” as the reason behind a Fedora change.

In this case, I think ample reasons were given other than “Red Hat wants it”:

2 Likes

Unless something changed, I thought sddm itself used x11 to get the initial login screen even if you ultimately launch a Wayland session.

I use openSuse Tumbleweed and I’ve been running it without X11 for several months. Wayland only.

Iirc, there was a config file I needed to poke at to get SDDM to load as expected. One of the pain points I had was the system’s systemd setup had a hard time understanding that I didn’t want X as my display manager. It wasn’t a hard package dependency, but rather that since X didn’t run, some other unit file that claimed a dependency on it wouldn’t get run either. I remember doing a systemctl edit on something.

I don’t mind taking the time to dig up the changes, so if you want, let me know and I’ll report back.

Now we can remove it?

You can simply remove the .desktop file for it under /usr/share/xsessions

Having said that, be advised that it will be restored after an update, and you’ll need to delete it again.

I’m using 6.3.91 (6.4 Beta 2), and I still see the X11 session option. I already removed kwin-x11.

FernandoMMuniz
I’m using 6.3.91 (6.4 Beta 2), and I still see the X11 session option. I already removed kwin-x11.

try:

sudo dnf remove plasma-workspace-x11

Prod_EGO
Having said that, be advised that it will be restored after an update, and you’ll need to delete it again.

If you remove plasma-workspace-x11 that won’t happen since the /usr/share/xsessions/plasmax11.desktop file is owned by plasma-workspace-x11 and would be permanently removed

1 Like

pacman didn’t find it, so I deleted the folder and it worked.
sudo rm -rfv /usr/share/xsessions/

sorry I only used Fedora, I’m sure there’s some command in pacman to tell you what package owns a file path. By deleting the folder but not removing the package, the system will possibly upgrade that package and you’ll have the unwanted folder again.
So I looked and found pacman has a option “Qo” that’s said to tell the package that owns the given path, try:

pacman -Qo /usr/share/xsessions

I’m not 100% sure that will work after you’ve deleted that folder and all those files under it. If pacman is like dnf/rpm, there’s a database that says where all the files are for each package. pacman things that package whatever it was is still there.

then when it tells you the package, remove it with

sudo pacman -Rs  <name of package>
1 Like

I think what is going on is that Arch just download the new “plasma-workspace”, which is actually the plasma-workspace-wayland version. So it was like x11 never existed, and the only thing that was left was /usr/share/xsessions/

According to this, kwin-x11 is optional.

So Arch gets rid of x11 before “Plasma 7” even exists hahahahah.

That’s mostly reflect the split of kwin-x11 out of main kwin repository.

The link should be to:

Many distro will do the same with Plasma 6.4, but that will depend on their policies still.

So Arch gets rid of x11 before “Plasma 7” even exists hahahahah.

Plasma 7 may remove the kwin-x11 package later. That’s way different to making it opt-in.