如何删除覆盆子登录界面上的关机按钮?
或者我可以在用户点击它时强行重启吗?或者禁用它?
由于
答案 0 :(得分:0)
我发现了这个:
sudo nano /etc/polkit-1/localauthority/50-local.d/restrict-login-powermgmt.pkla
# Add this :
[Disable lightdm PowerMgmt]
Identity=unix-user:*
Action=org.freedesktop.login1.reboot;org.freedesktop.login1.reboot-multiple-sessions;org.freedesktop.login1.power-off;org.freedesktop.login1.power-off-multiple-sessions;org.freedesktop.login1.suspend;org.freedesktop.login1.suspend-multiple-sessions;org.freedesktop.login1.hibernate;org.freedesktop.login1.hibernate-multiple-sessions
ResultAny=no
ResultInactive=no
ResultActive=no