I am using Kubuntu 14.10 and it's working quite well so far, but my problem is pretty much what it's stated in the title, when executing a GTK app that requires sudo privileges, such as Synaptic package manager, it's displayed with an ugly theme and huge fonts. However if starting the app without sudo, oxygen-gtk theme is respected. Sometimes the app won't even run until next reboot, displaying a message in terminal about not being able to open display X.

I've tried every possible theme in "System configuration -> Application appearance -> GTK" and other fixes suggested on forums around the web and even here in askubuntu but nothing seems to work. Any suggestions?

share|improve this question
1  
possible duplicate: Preserving GTK theme with gksudo – David Foerster Dec 21 '14 at 2:26

Run the command below and re-apply the oxygen-gtk theme:

kdesudo systemsettings
share|improve this answer
1  
By the help.ubuntu.com/community/RootSudo : "You should never use normal sudo to start graphical applications as Root. You should use gksudo (kdesudo on Kubuntu) to run such programs..." – user26687 Dec 21 '14 at 12:13

Copy everything gtk-3.0 and .gtkrc-20 from ~, ~/.config, ~/.kde/share/config to /root.

That's how my synaptic renders Kubuntu's Oxygen-GTK theme.

share|improve this answer
    
welcome to Ask Ubuntu it is highly unrecommended to copy anything to your root folder – Mudit Kapil Feb 26 '15 at 6:11
    
The was no recommendation to do anything. .There simply was an answer to a question which presented a problem. You did not address the question or the problem, but saw fit to downgrade the answer. That does not seem productive. – user78791 Feb 26 '15 at 17:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.