Please support sounds in Notify OSD

Bug #549900 reported by Dylan McCall
80
This bug affects 15 people
Affects Status Importance Assigned to Milestone
Ayatana Design
New
Undecided
Unassigned
notify-osd (Ubuntu)
In Progress
Wishlist
Dylan McCall

Bug Description

I would like to request that notify-osd support sounds.
The feature is briefly discussed at https://wiki.ubuntu.com/NotifyOSD#Sound

In addition, the Desktop Notifications Specification describes a sound-file hint:
http://www.galago-project.org/specs/notification/0.9/x344.html

This, as well as suppress-sounds, should be supported if the server supports sounds:
http://www.galago-project.org/specs/notification/0.9/x408.html

notify-osd can implement this feature using libcanberra-gtk. With that, it also makes sense to support an x-sound-id hint in notify-osd.

Related branches

Revision history for this message
Dylan McCall (dylanmccall) wrote :

Linking a branch with support of the feature I specified above, except for the strange (and possibly unnecessary) suppress-sounds hint. I'm happy to play around with it as you wish; just throw any feedback my way :)

It isn't required, but it would be nice to send some useful properties to Canberra, such as an event description and application id.

Changed in notify-osd:
assignee: nobody → Dylan McCall (dylanmccall)
description: updated
Revision history for this message
frizzle21 (frederik-nnaji) wrote :

sweet!
thx dylan

Revision history for this message
frizzle21 (frederik-nnaji) wrote :

could suppress sound mean suppress playback in other applications, if the current sound notification has high priority?

Revision history for this message
Dylan McCall (dylanmccall) wrote :

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).

Mirco Müller (macslow)
Changed in notify-osd:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Mirco Müller (macslow) wrote :

This weekend I'll do a number of patch-tests and will include yours too.

Revision history for this message
Dylan McCall (dylanmccall) wrote :

Hey Mirco! Any news on that patch test?

I don't mean to be trouble; I'm just excited to get this going. I think we'd be able to close off bug #431862, too ;)

Revision history for this message
Owais Lone (loneowais) wrote :

Any progress on this? Would be nice to have in Precise.

Revision history for this message
Ravi Kumar (kumarravi-kumar267) wrote :

I want it in Ubuntu 12.10!

summary: - Please support sounds
+ Please support sounds in Notify OSD
Changed in notify-osd:
status: Triaged → In Progress
affects: notify-osd → notify-osd (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.