eonpatapon / mpDris2

MPRIS V2.1 support for mpd
GNU General Public License v3.0
211 stars 46 forks source link

Fix notifications initialization #103

Closed eonpatapon closed 6 years ago

eonpatapon commented 6 years ago

When using GObject.Notify, Notify.init() returns true even if no service provides org.freedesktop.Notification. So we try to show a notification, if it fails notifications are disabled.

Also catch exceptions if at some point the notification service is not available anymore.