Comment 4 for bug 549900

Revision history for this message
Dylan McCall (dylanmccall) wrote : Re: Please support sounds

On the suppress-sounds hint:

From http://people.canonical.com/~agateau/notifications-1.1/spec/ar01s08.html
"suppress-sound" boolean Causes the server to suppress playing any sounds, if it has that ability. This is usually set when the client itself is going to play its own sound.

I'll admit the weird, silly, embarassing reason why I haven't been able to really test suppress-sounds as it is implemented: I have no idea how to pass a boolean value to a notification, and there is nothing else which seems to. notify-send, the handy testing tool, only supports int, double, string and byte hints; it won't do boolean hints. No other documentation seems to mention this either. If I just forego the value and assume, if suppress-sound is passed, that the client wants us to suppress sounds (assume True), it works… but then that seems to contradict what the specification is asking for.

Anyway, the way I have it causes any playing sounds to cease when the bubble with suppress-sounds first appears. (Which is a bit odd and pointless feeling; I'm probably doing it wrong).