Xfce Forum

Sub domains
 

You are not logged in.

#1 2013-09-26 15:29:33

Sergei_Alekseev
Member
Registered: 2013-09-26
Posts: 5

[Solved] System sounds for root applications

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

#2 2013-09-26 16:03:30

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [Solved] System sounds for root applications

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

#3 2013-09-26 16:18:30

Sergei_Alekseev
Member
Registered: 2013-09-26
Posts: 5

Re: [Solved] System sounds for root applications

Thank you for the answer.
Sounds are playing now.
Can i add that env somewhere for all root apps?

Offline

#4 2013-09-26 16:22:12

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [Solved] System sounds for root applications

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

#5 2013-09-26 18:38:46

Sergei_Alekseev
Member
Registered: 2013-09-26
Posts: 5

Re: [Solved] System sounds for root applications

Thank you, i am happy now)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 528.77 KiB (Peak: 530.05 KiB) ]