LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 02-03-2005, 12:00 AM   #1
staul
LQ Newbie
 
Registered: Mar 2004
Location: Singapore
Distribution: Fedora Core 3
Posts: 14

Rep: Reputation: 0
how to apply the current gtk theme to root-run program


i found the current gtk theme doesn't apply to those programs run by common user as root privilege. for example, if i run gedit in console after i su to root, it will not have the current theme... does anybody know how to deal with it?
 
Old 02-03-2005, 12:21 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Look for something like gtk-theme-switch and as root, use that to change your gtk theme so that it fits in with the one you are using as non root. You can also just run the prefernces menu as root (can't remember what it's called) and adjust the default theme. There could be other ways to do this, so maybe you may want to wait for other people opinions.
 
Old 02-03-2005, 12:37 AM   #3
staul
LQ Newbie
 
Registered: Mar 2004
Location: Singapore
Distribution: Fedora Core 3
Posts: 14

Original Poster
Rep: Reputation: 0
thanks, reddazz. i got what you mean. but it seems not to work because whenever i run the theme manager "gnome-theme-manager" to change theme setting as root, this manager's theme itself never changes no matter what i choose. but it's where actually the problem is. in fact, what i choose in the theme manager as root will only reflect to my next login as root.
 
Old 02-03-2005, 01:09 AM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
I think I had a similar experience when I first installed Fedora Core 3 where changes only happened when I logged out and in again, but it later on just worked as normal. I don't know if this was due to an update.
 
Old 02-03-2005, 07:46 AM   #5
staul
LQ Newbie
 
Registered: Mar 2004
Location: Singapore
Distribution: Fedora Core 3
Posts: 14

Original Poster
Rep: Reputation: 0
i mean, no matter where i specify the theme for root, it only applies if i login as root, but never applies to the program run by common user as privileged. weird,though. i guess there must be somewhere to specify the gtk setting for this kind of running.
 
Old 02-03-2005, 08:26 AM   #6
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
The problem with GNOME is that in their pursuit for "simplicity" and "HIGS" they seem to hide configuration settings that some users may need. I couldn't believe that just to change you desktop font color you have to use a theme that enables the color you want, edit a theme or create your own. Now, whats the simplicity in that.
 
Old 02-03-2005, 08:27 PM   #7
staul
LQ Newbie
 
Registered: Mar 2004
Location: Singapore
Distribution: Fedora Core 3
Posts: 14

Original Poster
Rep: Reputation: 0
problem solved! i share the solution here: in fact, the only thing you need to do is to put your theme under /usr/share/themes instead of your user home. after applying that, the theme beautifully comes out

it looks like a bug, only shared gtk theme can be applied to privileged programs. if it's a privileged program, it's supposed to be able to access everywhere...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run program as root at logon? scottjwoodford Linux - Software 7 06-13-2005 04:30 AM
run "gtk-theme-switch" error? homesp Debian 2 05-16-2005 12:55 AM
Automatically run root program. Hammett Linux - Software 4 05-16-2004 12:45 PM
KDE 3.1 won't start since i tried to apply a new theme nighty_hawk Linux - General 2 01-19-2004 05:26 AM
compiling kino, gtk test program cant run vance Linux - Software 1 06-02-2003 04:36 AM


All times are GMT -5. The time now is 01:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration