Hi,
I need to remove Suspend / Restart / Power Off… menu from Gnome Shell & GDM.
I’ve been trying using Settings, Gnome Tweaks, Dconf Editor, but nothing found AFAIK.
Trying to enter the Polkit conf file gave the same results.
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.login1.power-off" ||
action.id == "org.freedesktop.login1.reboot" ||
action.id == "org.freedesktop.login1.hibernate" ||
action.id == "org.freedesktop.login1.suspend") {
return polkit.Result.NO;
}
});
Any clue?
Thank you,
Regards