Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#830816: mpdris2: GLib.Error: ... The name org.freedesktop.Notifications was not provided by any .service files (2)

111 views
Skip to first unread message

Ben Longbons

unread,
Jul 11, 2016, 4:20:04 PM7/11/16
to
Package: mpdris2
Version: 0.7+git20160206-1
Severity: normal

Dear Maintainer,

Suddenly, mpdris2 fails to start. Since normally mpdris2 just runs
constantly in the background, and I usually stay logged in, I'm not
sure how long this has been a problem.

2016-07-11 13:08:29,942 mpDris2 INFO: Using file:///home/ben/Music as music library path.
2016-07-11 13:08:29,942 mpDris2 INFO: Mutagen not available, covers in music files will be ignored.
2016-07-11 13:08:29,948 mpDris2 WARNING: Failed to connect to GNOME Settings Daemon. Media keys won't work.
Traceback (most recent call last):
File "/usr/bin/mpDris2", line 1290, in <module>
mpd_wrapper.run()
File "/usr/bin/mpDris2", line 275, in run
if self.my_connect():
File "/usr/bin/mpDris2", line 342, in my_connect
self.timer_callback()
File "/usr/bin/mpDris2", line 432, in timer_callback
self._update_properties(force=False)
File "/usr/bin/mpDris2", line 703, in _update_properties
self.notify_about_track(new_meta, new_status['state'])
File "/usr/bin/mpDris2", line 591, in notify_about_track
notification.notify(title, body, uri)
File "/usr/bin/mpDris2", line 838, in notify
self._notification.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 (2)


-- System Information:
Debian Release: stretch/sid
APT prefers testing-debug
APT policy: (600, 'testing-debug'), (600, 'testing'), (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, x32

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mpdris2 depends on:
ii dbus 1.10.8-1
ii python 2.7.11-2
ii python-dbus 1.2.4-1
ii python-gi 3.20.1-1
ii python-mpd 0.3.0-4

Versions of packages mpdris2 recommends:
ii gir1.2-notify-0.7 0.7.6-2

Versions of packages mpdris2 suggests:
ii mpd 0.19.16-1

-- no debconf information

Simon McVittie

unread,
Jul 25, 2016, 5:50:03 AM7/25/16
to
On Mon, 11 Jul 2016 at 13:11:47 -0700, Ben Longbons wrote:
> 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 (2)

Which desktop environment are you using? (If you are not using a major
desktop environment like GNOME/KDE/XFCE, please summarize how your
graphical session starts, instead.)

Do you have dbus-user-session installed?

Do you have an implementation of o.fd.Notifications? (In no particular
order: lxqt-notificationd, xfce4-notifyd, notify-osd, dunst,
mate-notification-daemon, notification-daemon, cinnamon, gnome-shell,
plasma-workspace or gnome-flashback.)

mpdris2 should probably have a Recommends on notification-daemon to
ensure that one of those is pulled in. It should perhaps also
log-but-ignore errors communicating with the notification service.

S

Ben Longbons

unread,
Jul 25, 2016, 1:30:03 PM7/25/16
to
Notifications suddenly started working again yesterday. In the mean
time, I had edited the script to catch the exception and continue, so
at least the *controls* worked.

I use KDE and start it from SDDM - basically as vanilla as you can
get. I have noticed some KDE library packages getting upgraded lately
...

$ dpkg -l <list of interesting packages>
ii dbus-x11 1.10.8-1 amd64 simple interprocess messaging sys
ii notification-d 3.20.0-1 amd64 daemon for displaying passive pop
ii plasma-workspa 4:5.6.5.1-1 amd64 Plasma Workspace for KF5
0 new messages