1

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?

1

2 Answers 2

0

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.

3
  • welcome to Ask Ubuntu it is highly unrecommended to copy anything to your root folder Feb 26, 2015 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, 2015 at 17:28
  • other than setting gtk rc files adding Defaults env_keep += "DESKTOP_SESSION" # keep colors to /etc/sudoers may help
    – intika
    Apr 22, 2019 at 3:37
0

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

kdesudo systemsettings
1
  • 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, 2014 at 12:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .