You are not logged in.
Hello.
I added
"if [ -z "$GTK_MODULES" ] ; then
GTK_MODULES="canberra-gtk-module"
else
GTK_MODULES="$GTK_MODULES:canberra-gtk-module"
fi
export GTK_MODULES"
to /etc/xdg/xfce4/xinitrc and now properly named sounds in /usr/share/sounds are working good in gtk programs.
But only for apps started as user.
How to make sys sounds available for apps started as root?
Sorry about bad English.
Have a nice day.
Offline
Try starting your root apps like this (setting env in command):
gksu env GTK_MODULES="canberra-gtk-module" <command>
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Thank you for the answer.
Sounds are playing now.
Can i add that env somewhere for all root apps?
Offline
If you start your root apps with gksu, then just create an alias:
alias gksu='gksu env GTK_MODULES="canberra-gtk-module"'
If you're using bash. put it in ~/.bashrc.
Then simply:
gksu <command>
Last edited by ToZ (2013-09-26 16:23:00)
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Thank you, i am happy now)
Offline
[ Generated in 0.008 seconds, 9 queries executed - Memory usage: 528.55 KiB (Peak: 529.84 KiB) ]