guelfey/go.dbus — pull request #22 by tdubrownik (2013-09-07 12:18:26+00:00)
Title: Handle signals with omitted sender

As per http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-messages , a DBus signal may not have a Sender header field. As that makes msg.Headers[FieldSender] a Variant that cannot be converted to string, runtime panics ensue.

A real-life example of a service that issues such signals is PulseAudio.

I added a failsafe for this, which ensures an empty string Sender value for signals that do not have an explicit Sender header.