如何使用 Mate Desktop 禁用/删除 Ubuntu 20.04 Server 上开始菜单上的关机图标/功能?
那一个不起作用:
$ 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.d
也50-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
有解决办法吗?