GNOME Bugzilla – Bug 109529
No error message when an invalid soundfile is selected.
Last modified: 2004-12-22 21:47:04 UTC
Steps to reproduce 1.Invoke sound Capplet by selecting 'Application->Desktop Preferences->Sound'. 2. The 'Sound Preferences' window will be invoked. 3. Select 'Sound Event' Tab. 4. Select any sound event say 'Player wins!' from 'Gnet'. 5. Click on 'Browse' button. 6. Select any invalid sound file or any directory. 7. The invalid sound file or directory is displayed as the sound file to be played. No error message is shown. Attaching a patch the check the mime type of the selected file and if it not "audio/x-wav", an error dialog is shown. Thanks.
Created attachment 15306 [details] [review] Patch for this bug
Adding keywords upping pri.
Does audio/x-wav cover all the possible sound formats that are relevant here?
Only wav files can be associated with the events and thats why I am checking only for audio/x-wav, do I need to check for other formats too. Thanks.
No, I think .wav is the only supported format as of now.
Can this be reviewed, then?
Is this patch ok to commit ?
Looks ok to me. Only for HEAD though because of the string changes. I wonder if we should say "We are going to support other formats for sound events in the future."? I'm not really the person to say yes or no for control-center though :)
Does it truely need to be limited to just wav files ? or could we be more generic and allow 'audio/*' ?
Jody, Presently only wav formats are supported, thats why I am checking for only audio/x-wav.
ok. Then please apply.
Fixed in CVS.