libnotify错误GLib.Error:任何.service文件都没有提供名称org.freedesktop.Notifications

时间:2016-03-09 10:45:43

标签: python python-2.7 raspberry-pi libnotify

我收到此错误。知道什么是错的吗?

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)

1 个答案:

答案 0 :(得分:2)

这解决了它::)

sudo apt-get install libnotify-cil-dev