I’m doing a fresh new installation of Leap 16.0 and would like to not have the Sleep, Restart and Shutdown buttons on the KDE login screen. This is because this PC must run 24/7 and nobody should be able to just walk by and click on any of these. How can I do this?
What display manager are you using?
That’s SDDM on X11.
sddm should be asking systemd-logind whether it CanReboot / CanPowerOff and systemd-logind should be following PolicyKit (unless sddm runs as root). You can try the PolicyKit configuration from
Disable Restart and Shutdown is ignored · Issue #1976 · sddm/sddm
Unfortunately, this is the case. sddm issues CanReboot / CanPowerOff queries as root which means systemd-logind bypasses PolicyKit entirely.
Pragmatic solution is to use modified theme where these buttons are removed:
I tested with the breeze-openSUSE theme, works fine. Sleep is disabled globally in systemd-logind configuration (this is VM where neither sleep not hibernate work).
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
