glib.GError: The name org.freedesktop.Notifications was not provided by any .service files
I decided to investigate and tried this simple script (that depends on the 'python-notify' package), which gave me the same error:
import pynotify
def callback_function(notification=None, action=None, data=None):
print "It worked!"
pynotify.init( "Some Application or Title" )
n = pynotify.Notification("Title", "body", "dialog-warning")
n.set_urgency(pynotify.URGENCY_NORMAL)
n.set_timeout(pynotify.EXPIRES_NEVER)
n.add_action("clicked", "Button text", callback_function, None)
n.show()
$ python notify.py
Traceback (most recent call last):
File "notify.py", line 11, in <module>
n.show()
glib.GError: The name org.freedesktop.Notifications was not provided by any .service files
I tried reinstalling glib and hal, with no success. Is anyone having this same problem?
I don't know if that is anything to do with this other issue, but I also can't shutdown or reboot through Gnome:
$ gnome-power-cmd.sh shutdown
Shutting down
Error org.freedesktop.DBus.Error.UnknownMethod: Method "Shutdown" with signature "" on interface "org.freedesktop.PowerManagement" doesn't existFailed
$ gnome-power-cmd.sh reboot
Rebooting
Error org.freedesktop.DBus.Error.UnknownMethod: Method "Reboot" with signature "" on interface "org.freedesktop.PowerManagement" doesn't existFailed
EDIT:
Sorry for that, I only had to install notification-daemon to make this work. In my defense, I must say there are not many places talking about this. I found it here: