我收到此错误。知道什么是错的吗?
from gi.repository import Notify
Notify.init("App Name")
Notify.Notification.new("Hi").show()
GLib.Error: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files
(在Raspberry Pi上使用最新的Raspbian)
答案 0 :(得分:2)
这解决了它::)
sudo apt-get install libnotify-cil-dev