fix(kde): don't start X11-dependent services if xwayland is disabled#1178
Merged
RoyalOughtness merged 3 commits intosecureblue:livefrom Jul 11, 2025
Merged
Conversation
ksmserver is KDE Plasma's X11 session management server and fails if Xwayland is disabled. This adds a condition to plasma-ksmserver.service, preventing it from starting if the override disabling Xwayland is detected.
This is another service that's pointless if Xwayland is disabled.
RoyalOughtness
approved these changes
Jul 11, 2025
pxlkng
approved these changes
Jul 11, 2025
RoyalOughtness
pushed a commit
to RoyalOughtness/secureblue-dev
that referenced
this pull request
Aug 4, 2025
…ecureblue#1178) * fix(kde): don't start plasma-ksmserver if xwayland is disabled ksmserver is KDE Plasma's X11 session management server and fails if Xwayland is disabled. This adds a condition to plasma-ksmserver.service, preventing it from starting if the override disabling Xwayland is detected. * apply same condition to plasma-xembedsniproxy.service This is another service that's pointless if Xwayland is disabled. * use systemctl to make condition more robust
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ksmserver is KDE Plasma's X11 session management server and fails if Xwayland is disabled. This adds a condition to
plasma-ksmserver.service, preventing it from starting if the override disabling Xwayland is detected.This fixes this KDE bug for secureblue in a manner independent of the upstream fix: it prevents the bug from triggering before the upstream fix is applied, and it will continue working afterward (at which point it will simply prevent the service from showing up as a failed service in
systemctl --user statusand such).Similarly, the same condition is added to
plasma-xembedsniproxy.service, whose sole purpose is X11 compatibility and is therefore pointless with Xwayland disabled.I did not apply the same override to two other services that currently fail with Xwayland disabled,
plasma-gmenudbusmenuproxy.serviceandplasma-kaccess.service, because it looks like those aren't inherently tied to X11 but just haven't been made to work with Wayland yet.