1.3 KiB
1.3 KiB
当安装了其他通知服务时,plasma 在启动时可能会选择错误的通知服务导致通知中心无法正常工作 (虽然平时也并不怎么在意这玩意,用什么 daemon 都无所谓,只要有通知看就行)
如何知道是否是这种情况呢?以 mako 为例:
- 先知道 mako 是什么时候被启动的 (或者自己推算时间):
journalctl --user -u mako.service --no-pager -g 'Starting' - 查看先后的日志:
journalctl --user --since '2025-07-29 00:43:16' --until '2025-07-29 00:43:18' - 如果发现类似以下内容:
那就是这种情况了。
... Jul 29 00:43:17 Artemisia systemd[1080]: Starting Lightweight Wayland notification daemon... Jul 29 00:43:17 Artemisia systemd[1080]: Started Lightweight Wayland notification daemon. ... Jul 29 00:43:17 Artemisia plasmashell[1599]: org.kde.plasma.notificationmanager: Failed to register Notification service on DBus ...
解决方法之一,将 plasma 的通知服务的优先级提高:
mkdir -p ~/.local/share/dbus-1/services/
ln -s /usr/share/dbus-1/services/org.kde.plasma.Notifications.service ~/.local/share/dbus-1/services/org.kde.plasma.Notifications.service
或者放到 /usr/local/share/dbus-1/services/ 也可以提高优先级。