Nat*_*ver 10 kde lock-screen kubuntu plasma-5 18.04
KDE 锁定屏幕具有如下所示的媒体播放器控件:
我想关闭此功能,如D9685(为锁屏添加配置以切换媒体控件)和KDE 错误 384264 中所述。
我正在使用 KDE Plasma 5.12.7 运行 KUbuntu 18.04,我的锁屏配置文件如下所示:
<?xml version="1.0" encoding="UTF-8"?>
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
<kcfgfile name=""/>
<group name="General">
<entry name="showMediaControls" type="Bool">
<label>If true, shows any currently playing media along with controls to pause it.</label>
<default>true</default>
</entry>
</group>
</kcfg>
Run Code Online (Sandbox Code Playgroud)
/usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/config.xml
与旧版本不同,媒体控件可在 Plasma 5.12.7 中配置:
$ grep -B 3 -A 2 config.showMediaControls /usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/LockScreenUi.qml
Loader {
Layout.fillWidth: true
Layout.preferredHeight: item ? item.implicitHeight : 0
active: config.showMediaControls
source: "MediaControls.qml"
}
Run Code Online (Sandbox Code Playgroud)
因此,我尝试更改showMediaControls
设置,但该设置在screenlocker
菜单中不可用:
$ kcmshell5 screenlocker
Run Code Online (Sandbox Code Playgroud)
将主题从 KUbuntu 更改为 Breeze 或 Breeze Dark 没有任何效果。
我还尝试从命令行更改配置。由于元素的name
属性kcfgfile
为空,我希望配置文件为lockscreenrc
,所以我使用了这个命令:
kwriteconfig5 --file lockscreenrc --group 'General' --key 'showMediaControls' --type 'bool' 'false'
Run Code Online (Sandbox Code Playgroud)
然而,这没有效果。即使将此设置写入所有这些文件后:
播放器控件在锁定屏幕上仍然可见。我如何才能真正从锁定屏幕中删除控件?
use*_*687 13
锁屏中的 KDE/Plasma 音乐控制
通过https://kde.org/announcements/plasma-5.12.0.php:
媒体控件已添加到锁定屏幕。为了增加隐私,可以在 Plasma 5.12 中禁用它们。
但是:https : //bugs.kde.org/show_bug.cgi?id=389483#c4
呃,有一个错误。
如果“外观”选项卡不是加载时的活动选项卡,则它不会呈现第二个 QtQuick UI
使用 Plasma 5.12.2 或更高版本修复...
但是:https : //bugs.kde.org/show_bug.cgi?id=389483#c17
使用 Debian、Ubuntu 和 Neon 进行快速测试:
Debian - 不工作:https : //imgur.com/oluO1Tu Ubuntu - 不工作:https : //imgur.com/tu1q2iL Neon - 工作:https : //imgur.com/57EgU2d ...这似乎是一个 Debian /Ubuntu 问题。也许 Debian/Ubuntu 错误跟踪系统中的错误报告会有所帮助。
这在 Kubuntu 18.04 中仍然被打破。在 Kubuntu 18.10 中,配置选项就在那里。
手动配置
KDE 锁屏配置文件为:
$ locate screenlocker
/home/<usernamehere>/.config/kscreenlockerrc
Run Code Online (Sandbox Code Playgroud)
kscreenlockerrc。
配置选项是(真/假):
[Greeter][LnF][General]
showMediaControls=false
Run Code Online (Sandbox Code Playgroud)
这可以通过 kwriteconfig5 添加:
kwriteconfig5 --file kscreenlockerrc --group Greeter --group LnF --group General --key showMediaControls --type bool false
测试
用“假”:
归档时间: |
|
查看次数: |
3738 次 |
最近记录: |