libnotify error GLib.Error: The name org.freedesktop.Notifications was not provided by any .service files
libnotify error GLib.Error: The name org.freedesktop.Notifications was not provided by any .service files
我收到这个错误。知道有什么问题吗?
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)
这解决了::)
sudo apt-get install libnotify-cil-dev
我收到这个错误。知道有什么问题吗?
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)
这解决了::)
sudo apt-get install libnotify-cil-dev