答案1
事实证明这非常简单,只需在 screen.ui 文件中的“screen_lock_on_switch”部分下将标志从“True”更改为“False”即可。我退出并重新登录后,锁定切换按钮就消失了。
修改前的代码
<object class="GtkSwitch" id="screen_lock_on_switch">
<property name="visible">True</property>
<property name="can_focus">True</property>
<accessibility>
<relation type="labelled-by" target="lock-section-heading"/>
</accessibility>
</object>
修改后的代码
<object class="GtkSwitch" id="screen_lock_on_switch">
<property name="visible">False</property>
<property name="can_focus">True</property>
<accessibility>
<relation type="labelled-by" target="lock-section-heading"/>
</accessibility>
</object>