Answers:
即使您无法隐藏按钮,也可以配置系统,使lightdm
用户没有关闭或重新启动系统的权限。由于迎宾员以lightdm
用户身份运行,因此应该可以解决您的问题。创建两个新文件/var/lib/polkit-1/localauthority/50-local.d
,打电话给他们disable-lightdm-shutdown.pkla
,并disable-lightdm-restart.pkla
与申请内容如下。注意:您也可以将它们粘贴到一个文件中。
关掉:
[Disable Shutdown]
Identity=unix-user:lightdm
Action=org.freedesktop.consolekit.system.stop
ResultAny=no
ResultInactive=no
ResultActive=no
重新开始:
[Disable Restart]
Identity=unix-user:lightdm
Action=org.freedesktop.consolekit.system.restart
ResultAny=no
ResultInactive=no
ResultActive=no
据我所知,没有针对LightDM的任何配置工具,如果有的话,肯定没有任何方法可以删除该按钮。
除非您想自己重写LightDM。