XFCE event sounds missing

jEsuSdA 8) listas at jesusda.com
Sat Mar 29 21:46:17 CET 2014


El 26/03/14 16:26, Serge escribió:
> Nevermind what you entered there, canberra must play properly named
> files in /usr/share/sounds
> Maybe you neeed to edit /etc/xdg/xfce4/xinitrc
> and add there
>
> if [ -z "$GTK_MODULES" ] ; then
>      GTK_MODULES="canberra-gtk-module"
> else
>      GTK_MODULES="$GTK_MODULES:canberra-gtk-module"
> fi
>
> export GTK_MODULES



Hi!

I have done this but still does not work properly.

This hack is like the hacks I made early:

edit /etc/X11/Xsession.d/52libcanberra-gtk-module_add-to-gtk-modules
and edit /etc/X11/Xsession.d/52libcanberra-gtk3-module_add-to-gtk-modules

And copy:

if [ -z "$GTK_MODULES" ] ; then
	GTK_MODULES="canberra-gtk-module"
else
	GTK_MODULES="$GTK_MODULES:canberra-gtk-module"
fi
export GTK_MODULES




I have proved to convert audio files to WAV format and copy them into 
/usr/share/sounds/

THIS NOT WORK AT ALL. No sounds are played.


I have proved to convert audio files to OGG format and copy them into 
/usr/share/sounds/

THIS NOT WORK AT ALL. No sounds are played.


I have proved to set the theme name PASODOBLE into xfce4-settings-editor 
and gconf-editor

If I use WAV files into /usr/share/sounds/pasodoble folder, THIS NOT 
WORK AT ALL. No sounds are played.

If I use OGG files into /usr/share/sounds/pasodoble folder, THIS WORK, 
but SOME sounds are played, NO OTHER. This is the start point of muy 
troubles.



So, the thing is: I have a sound theme and canberra-gtk-module is load; 
SOME event sounds are played, but SOME OTHERS does not play at all.



If I test this:


for i in alarm-clock-elapsed alarm audio-channel-front-center 
audio-channel-front-left audio-channel-front-right 
audio-channel-rear-center audio-channel-rear-left 
audio-channel-rear-right audio-channel-side-left audio-channel 
side-right audio-test-signal audio-volume-change bell button-toggle-off 
button-toggle-on camera-shutter complete desktop-login desktop-logout 
device-added device-removed dialog-error  dialog-information 
dialog-question dialog-warning message-new-instant message-new-mail 
message network-connectivity-established network-connectivity-lost 
phone-incoming-call phone-outgoing-busy phone-outgoing-calling 
power-plug power-unplug screen-capture service-login service-logout 
suspend-error system-ready trash-empty window-attention window-question 
window-slide
do

echo "$(tput setaf 1)PROBANDO MENSAJE: $i $(tput setaf 7)"
/usr/bin/canberra-gtk-play -i $i
done


ALL SOUNDS ARE PLAYED, but, if I try to do any acction who must launch 
the event sound, some of them does not play.


¿Why /usr/bin/canberra-gtk-play -i trash-empty sounds OK, but empty the 
XFCE Trash DOES NOT PLAY ANY SOUND ?

¿Why some alert windows has sound (Thunar delete file confirmation) and 
no others (gedit exit whitout saving)?


¿What kind of nonsense is this?

¿What I am doing wrong?

¿Has XFCE support for ALL sound events?



> Also, i use slim and default command for starting session changed to
> 'login_cmd exec /bin/bash - /etc/xdg/xfce4/xinitrc %session'
> in /etc/slim.conf.
> You can add start/stop session sounds there:
> sessionstart_cmd aplay <path to your soundfile>.wav
> sessionstop_cmd aplay <path to your soundfile>.wav


I use LightDM, XFCE 4.10 and Debian Testing.

I have installed:

libcanberra-pulse
libcanberra-gtk0
libcanberra-gtk3-0
libcanberra-gtk-module
libcanberra-gtk3-module
libcanberra0
gnome-session-canberra




Please HELP ME!!





More information about the Xfce mailing list