mpris-remote icon indicating copy to clipboard operation
mpris-remote copied to clipboard

Ugly traceback when dbus isn't found

Open mackstann opened this issue 14 years ago • 0 comments

http://mapopa.blogspot.com/2010/08/mpris-support-in-qmmp.html

In case that page disappears, the problem is triggered by this bit of code:

bus = dbus.SessionBus()

And the exception is this:

dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

mpris-remote should catch this exception and tell the user that dbus isn't running in a more obvious manner.

mackstann avatar Feb 16 '11 22:02 mackstann