答案1
答案2
如果您想自动化或只是通过命令行执行,那么您需要创建或更新 2 个文件:
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-screensaver.xml
内容:
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfce4-screensaver" version="1.0">
<property name="saver" type="empty">
<property name="mode" type="int" value="0"/>
<property name="enabled" type="bool" value="false"/>
</property>
<property name="lock" type="empty">
<property name="enabled" type="bool" value="false"/>
</property>
</channel>
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml
内容:
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfce4-power-manager" version="1.0">
<property name="xfce4-power-manager" type="empty">
<property name="power-button-action" type="empty"/>
<property name="lock-screen-suspend-hibernate" type="empty"/>
<property name="logind-handle-lid-switch" type="empty"/>
<property name="blank-on-ac" type="int" value="0"/>
<property name="blank-on-battery" type="int" value="0"/>
<property name="dpms-enabled" type="bool" value="false"/>
<property name="dpms-on-ac-sleep" type="empty"/>
<property name="dpms-on-ac-off" type="empty"/>
<property name="dpms-on-battery-sleep" type="empty"/>
<property name="dpms-on-battery-off" type="empty"/>
<property name="show-panel-label" type="empty"/>
<property name="inactivity-sleep-mode-on-ac" type="empty"/>
<property name="inactivity-sleep-mode-on-battery" type="empty"/>
<property name="show-tray-icon" type="bool" value="false"/>
</property>
</channel>
答案3
您可以添加Hidden=true
到/etc/xdg/autostart/light-locker.desktop
。这将为所有用户禁用它。
命令示例:
echo "Hidden=true" >> /etc/xdg/autostart/light-locker.desktop
在 Xubuntu 20.04 上测试。