Search code examples
pythonpython-2.7raspberry-pilibnotify

libnotify error GLib.Error: The name org.freedesktop.Notifications was not provided by any .service files


I am getting this error. Any idea what is wrong?

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 

(using latest Raspbian on Raspberry Pi)


Solution

  • This solved it: :)

    sudo apt-get install libnotify-cil-dev