"if [ -z "$GTK_MODULES" ] ; then
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.
Try starting your root apps like this (setting env in command):
gksu env GTK_MODULES="canberra-gtk-module" <command>
Thank you for the answer.
Sounds are playing now.
Can i add that env somewhere for all root apps?
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.
Last edited by ToZ (2013-09-26 16:23:00)
Thank you, i am happy now)