GNOME Bugzilla – Bug 339638
play sound when completed
Last modified: 2009-07-29 10:47:02 UTC
play a sound when burn is complete.
You mean add gstreamer support in n-c-b and simply play a sound when burning is finished ? Or use other application to play the sound ?
It should probably use libgnome's sound events as it already links against it.
Created attachment 102955 [details] [review] play a sound when completed Ok this patch is just to get an idea how i plan to do it... now do we want to play a sound just when the burn finishes and it completed fine or do we want to play a sound in every message like errors too ?
Use gnome_triggers_do() instead, as it doesn't require the full path to the file, and allows for custom sounds. You should probably also get a soundlist file installed. Also the hostname is never initialised in your code, just use NULL as the hostname instead. eg: gnome_triggers_do (NULL, NULL, "nautilus-cd-burner", "burn-successful, NULL); See /etc/sound/events/ for other soundlists. As for the error case, you'll already get the "warning" sound when the dialogue pops up, which should be good enough.
This code should use libcanberra-gtk nowadays.
nautilus-cd-burner has been replaced by Brasero in the GNOME 2.26 release. If your bug still applies to Brasero, please feel free to re-open the bug, and reassign it to brasero itself.