Ubuntu 20.04 Server Mate 桌面/删除所有用户的关机图标/功能

Ubuntu 20.04 Server Mate 桌面/删除所有用户的关机图标/功能

如何使用 Mate Desktop 禁用/删除 Ubuntu 20.04 Server 上开始菜单上的关机图标/功能?

Mate 桌面菜单

那一个不起作用:

 $ gsettings set com.canonical.indicator.session suppress-shutdown-menuitem true <br>  
 $ gsettings set com.canonical.indicator.session suppress-restart-menuitem true <br>
 $ gsettings set com.canonical.indicator.session suppress-logout-menuitem true <br>
 $ gsettings set com.canonical.indicator.session user-show-menu false <br>

disable-shutdown.pkla/etc/polkit-1/localauthority/90-mandatory.d50-locale.d不起作用:

[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

有解决办法吗?

相关内容