When new mail arrives in Evolution there is an option to play a sound file. This used to work with Evolution 1.4.6, but a recent Gnome library update apparently causes it to fail. See possible fix in "additional information" below. Reproducible: Always Steps to Reproduce: 1.In Tools->Evolution Settings->Mail Preferences->New Mail Notification specify the option to "play a sound file" and select a sound file. I used a wav file. 2.Wait for new mail to arrive 3.No sound is produced Other Gnome applications still produce sound. The problem has been identified: Subject: Re: [Evolution] Mail arrival sound From: Jeffrey Stedfast <fejj@ximian.com> To: Lonnie Borntreger <email@borntreger.com> Cc: Evolution List <evolution@lists.ximian.com> It used to be in mail/main.c and I thought that Ettore had moved all the init calls into shell/main.c. Oh well. Jeff On Wed, 2004-06-16 at 22:31 -0700, Lonnie Borntreger wrote: > OK - based on Jeff's email - I was spurred to action (even though my > background is in running development environments - not developing > itself). > > I did some reading in /usr/include/libgnome-2.0/libgnome/gnome-sound.h > and then did some debugging. > > pocket-> cat a.c > #include <libgnome/gnome-sound.h> > > main() > { > char *filename = "/storage/SOUNDS/notify.wav"; > gnome_sound_play (filename); > } > > -> gcc -I /usr/include/libgnome-2.0 -I /usr/include/glib-2.0 \ > -I /usr/lib/glib-2.0/include -l gnome-2 a.c > -> ./a.out > > Result: no sound > > pocket-> cat a.c > #include <libgnome/gnome-sound.h> > > main() > { > char *filename = "/storage/SOUNDS/notify.wav"; > gnome_sound_init("localhost"); > gnome_sound_play (filename); > } > > -> gcc -I /usr/include/libgnome-2.0 -I /usr/include/glib-2.0 \ > -I /usr/lib/glib-2.0/include -l gnome-2 a.c > -> ./a.out > > Result: sound > > The only call to gnome_sound_init that I see in the evolution source is > one in calendar/gui/alarm-notify/notify-main.c - nothing in mail. So, I > added a call to gnome_sound_init in mail/mail-folder-cache.c right > before the call to gnome_sound_play. Amazing enough, now I get mail > notifications. Not only that, I get gnome system notifications when I > click around in the menus - which never occurred before. So, basically, > gnome_sound_init should be called when evolution starts - if it's called > in mail-folder-cache.c then no other sound works until the first mail > arrived. > > TTFN, > Lonnie Borntreger >
this is a known bug in libgnome(ui) i think.. a dupe is somewhere in this bugzilla, i'm not sure if there's a fix already
I had reported that bug here: http://bugs.gentoo.org/show_bug.cgi?id=50700 Someone marked it as "resolved upstream" but I updated all of my GNOME stuff yesterday and it's still broken.
*** This bug has been marked as a duplicate of 50700 ***