how to apply the current gtk theme to root-run program
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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?
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.
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.
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.
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.
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.
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.