Hi there,
I would like to remove some options from the Leave-start menu like “Switch User” or “Save Session”.
How can I achieve this?
Hi there,
I would like to remove some options from the Leave-start menu like “Switch User” or “Save Session”.
How can I achieve this?
As far as I know this isn’t possibile in KDE5. That was changed in KDE6.
Create a menu entry with kmenuedit calling KSMServer logout.
My own runs:
org.kde.ksmserver /KSMServer logout 1 3 3
which restricts the entries to logout, shutdown and reboot. A quick web search should find information on how to change the command for the options you want.
Once you created it, you can add its launcher to your panel.
Thanks! I guess I’ll have to wait for the release of KDE6.
Unfortunately, this doesn’t work for me. ![]()
I’m sorry to address you directly, but KDE6 has been installed today and despite checking several times, I can’t find an option to implement the setting I want.
I disable (and hide) hibernate with this
/etc/polkit-1/rules.d/99-disable-hibernate.rules
// Disable hibernate for all users
polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.login1.hibernate")) {
return polkit.Result.NO;
}
});
polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.login1.hibernate-multiple-sessions")) {
return polkit.Result.NO;
}
});
Maybe something similar ?
There are a few notes at the link you were previously given that seem to relate; possibly an upstream (KDE) bug involved.
Thanks, I’ll keep an eye on it.
That looks interesting, I’ll have a look later. But I don’t think I can use it to hide a “switch user”?