After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 339638 - play sound when completed
play sound when completed
Status: RESOLVED OBSOLETE
Product: nautilus-cd-burner
Classification: Deprecated
Component: cd-burner
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Nautilus CD Burner Maintainers
Nautilus CD Burner Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-04-24 21:05 UTC by William Jon McCann
Modified: 2009-07-29 10:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
play a sound when completed (1.37 KB, patch)
2008-01-16 01:47 UTC, Luis Medinas
none Details | Review

Description William Jon McCann 2006-04-24 21:05:30 UTC
play a sound when burn is complete.
Comment 1 Luis Medinas 2008-01-14 19:51:03 UTC
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 ?
Comment 2 Bastien Nocera 2008-01-15 23:41:06 UTC
It should probably use libgnome's sound events as it already links against it.
Comment 3 Luis Medinas 2008-01-16 01:47:44 UTC
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 ?
Comment 4 Bastien Nocera 2008-01-16 11:21:54 UTC
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.
Comment 5 Bastien Nocera 2008-12-16 14:37:32 UTC
This code should use libcanberra-gtk nowadays.
Comment 6 Bastien Nocera 2009-07-29 10:47:02 UTC
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.