我有一个问题在这个问题中:启动后,我进入一个没有任务栏的桌面,桌面对右键单击没有反应。大多数时候 krunner 都可以工作,所以我可以启动程序(Ctrl+Alt+T 也可以打开一个终端,将光标移动到左上角会显示所有当前窗口,我可以通过快捷方式在虚拟桌面之间切换)。我删除了.config/plasma*
,.kde4/
甚至创建了一个新用户,但似乎没有什么能解决这个问题。登录时,KDE 正在加载,但启动画面在最后挂起几秒钟,然后才显示桌面。奇怪的是,是屏幕左下角的任务栏的人工制品,其宽度约为 1px,具有任务栏的高度(以及周围轻微的“眩光”)。
我尝试手动重新启动它,kstart plasma-shell
结果却显示
kstart(1597) main: Omitting both --window and --windowclass arguments is not recommended
。kquitapp plasma-shell
之前运行的程序就挂起了。
自从从 KDE 4 升级到 5 以来,我就遇到了这个问题。有几次它自己解决了,或者我可以通过删除上述文件夹来解决,但大多数情况下都无济于事。当它正常工作时,问题再次出现,例如当我将笔记本电脑从扩展坞取出/插入扩展坞时,它崩溃了plasma-shell
(它要求我报告,但随后它拒绝了,因为信息太少)并且单击重新启动不起作用。
任何关于如何解决这个问题或在哪里查看(journalctl
没有给出错误)的提示都将不胜感激。我在联想 T410(英特尔高清显卡)上运行 Arch Linux。
编辑
这是我少数几次从 konsole 重启 plasmashell 时控制台的输出(这样得到了背景图像,但仍然没有任务栏)。最后几行不断重复(每秒重复几行)
[johannes@XX ~]$ kstart plasmashell
kstart(1934) main: Omitting both --window and --windowclass arguments is not recommended
kscreen: Primary output changed from KScreen::Output(Id: 72 , Name: "HDMI3" ) ( "HDMI3" ) to KScreen::Output(Id: 72 , Name: "HDMI3" ) ( "HDMI3" )
unversioned plugin detected, may result in instability
unversioned plugin detected, may result in instability
unversioned plugin detected, may result in instability
unversioned plugin detected, may result in instability
unversioned plugin detected, may result in instability
unversioned plugin detected, may result in instability
unversioned plugin detected, may result in instability
No metadata file in the package, expected it at: "/usr/share/wallpapers/Colorado_Farm/contents/images//metadata.desktop"
No metadata file in the package, expected it at: "/usr/share/wallpapers/Colorado_Farm/contents/images//metadata.desktop"
No metadata file in the package, expected it at: "/usr/share/wallpapers/Colorado_Farm/contents/images//metadata.desktop"
kscreen: Primary output changed from KScreen::Output(Id: 72 , Name: "HDMI3" ) ( "HDMI3" ) to KScreen::Output(Id: 72 , Name: "HDMI3" ) ( "HDMI3" )
Known plasmoid ids: QHash()
unversioned plugin detected, may result in instability
unversioned plugin detected, may result in instability
unversioned plugin detected, may result in instability
unversioned plugin detected, may result in instability
org.kde.plasma.pulseaudio: Attempting connection to PulseAudio sound daemon
org.kde.plasma.pulseaudio: QHash((263, "Muted")(260, "Index")(261, "Properties")(266, "Name")(267, "Description")(264, "HasVolume")(265, "VolumeWritable")(270, "ActivePortIndex")(268, "CardIndex")(269, "Ports")(258, "PulseObject")(259, "ObjectName")(257, "Index")(262, "Volume"))
org.kde.plasma.pulseaudio: QHash((263, "Muted")(260, "Index")(261, "Properties")(266, "Name")(267, "Description")(264, "HasVolume")(265, "VolumeWritable")(270, "ActivePortIndex")(268, "CardIndex")(269, "Ports")(258, "PulseObject")(259, "ObjectName")(257, "Index")(262, "Volume"))
file:///usr/lib/qt/qml/org/kde/plasma/extras/ScrollArea.qml:48: Error: Cannot assign to non-existent property "interactive"
Notifications service registered
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/Notifications.qml:135: TypeError: Cannot read property 'IdleTime' of undefined
XSync seems available and ready
XSync Inited
Supported, init completed
file:///usr/lib/qt/qml/QtQuick/Controls/Button.qml:96: TypeError: Cannot read property of null
file:///usr/lib/qt/qml/QtQuick/Controls/Button.qml:96: TypeError: Cannot read property of null
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:37: TypeError: Cannot read property 'flat' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:38: TypeError: Cannot read property 'hovered' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:124: TypeError: Cannot read property 'text' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:83: TypeError: Cannot read property 'menu' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:37: TypeError: Cannot read property 'flat' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:38: TypeError: Cannot read property 'hovered' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:124: TypeError: Cannot read property 'text' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:83: TypeError: Cannot read property 'menu' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:37: TypeError: Cannot read property 'flat' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:38: TypeError: Cannot read property 'hovered' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:124: TypeError: Cannot read property 'text' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:83: TypeError: Cannot read property 'menu' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Button.qml:96: TypeError: Cannot read property of null
file:///usr/lib/qt/qml/QtQuick/Controls/Button.qml:96: TypeError: Cannot read property of null
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:37: TypeError: Cannot read property 'flat' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:38: TypeError: Cannot read property 'hovered' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:124: TypeError: Cannot read property 'text' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:83: TypeError: Cannot read property 'menu' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:37: TypeError: Cannot read property 'flat' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:38: TypeError: Cannot read property 'hovered' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:124: TypeError: Cannot read property 'text' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:83: TypeError: Cannot read property 'menu' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Button.qml:96: TypeError: Cannot read property of null
file:///usr/lib/qt/qml/QtQuick/Controls/Button.qml:96: TypeError: Cannot read property of null
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:37: TypeError: Cannot read property 'flat' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:38: TypeError: Cannot read property 'hovered' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:124: TypeError: Cannot read property 'text' of null
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:83: TypeError: Cannot read property 'menu' of null
libkcups: Create-Printer-Subscriptions last error: 1025 Forbidden
libkcups: Calling cupsDoAuthentication() password_retries: 0
libkcups: Called cupsDoAuthentication(), success: true
libkcups: Create-Printer-Subscriptions last error: 1025 Forbidden
libkcups: Calling cupsDoAuthentication() password_retries: 0
libkcups: Called cupsDoAuthentication(), success: true
大约 15 分钟后,任务栏才出现
libkcups: Calling cupsDoAuthentication() password_retries: 0
libkcups: Called cupsDoAuthentication(), success: true
Plasma Shell startup completed
但是 libkcups 消息一直不断出现。
答案1
这是由于 libkcups 中的一个错误造成的。它会不断重试创建打印机订阅,直到无限次,即使用户在 cups 服务器上没有被授予该权限。
如果您使用的是本地 cups 服务器,请查看您的cupsd.conf
文件。使用 Web 界面将其重置为默认配置可能是一个好主意。您可以使用 URLhttp://本地主机:631/admin/,选择“编辑配置文件”,然后选择“使用默认配置文件”。
如果您使用的是远程 cups 服务器,请查看您的client.conf
文件。目前,注释掉此文件中的服务器就足以让您的 plasmashell 恢复正常。如果您想继续将其与 KDE 插件一起使用,您必须联系服务器管理员授予您必要的权限。
请记住在更改这些文件后重新启动org.cups.cupsd.service
守护进程以应用更改。
答案2
重置为默认配置文件不起作用。每次调用 kstart plasmashell 时,RSS 订阅都会重新出现并导致崩溃。禁用 cups 可让 plasmashell 加载,然后只需从面板系统小部件中删除打印机即可。
概括
$ sudo service cups stop
$ kstart plasmashell