Sample Header Ad - 728x90

Remove Suspend / Restart / Power Off… menu from Gnome Shell & GDM

2 votes
1 answer
2157 views
I need to remove Suspend / Restart / Power Off… menu from Gnome Shell & GDM. enter image description here 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
Asked by Nexus1138 (21 rep)
Dec 11, 2022, 01:40 PM
Last activity: Apr 29, 2025, 07:02 PM