Registered Member
|
Hi,
Having some minor problems with the theme settings in kubuntu 15.04 beta (updated today: Mar/04/2015): "sudo kate" will give me a kate window with an undefineable theme - it's not oxygen, it's not raleigh or breeze. It uses some sandish color I've tried quite a few things now, but nothing seems to make the launched instances of kate or any kde application use the default theme. Also: The icons seem to be mostly just missing. So, sudo and kubuntu aren't working smoothly, right now. Any pointers for someone who really does enjoy the new style of Breeze? Can I c/p some files into default directories that are getting used? Should I report a bug? If - what package would be the one this applies to? Thanks in advance, Timo |
KDE Developer
|
The problem is that you use sudo for graphical applications. That's hardly supported, e.g. required env variables are not passed to the application resulting in the correct style not picked up.
If you really have to run graphical applications as root at least use kdesudo. |
Registered Member
|
Unfortunately, there is no visual difference between launching sudo kate and kdesudo kate.
Both cases provide me with a "bad" theme. Please, see for yourself: http://i.imgur.com/OH0HVzE.png |
KDE Developer
|
could you please have a look at the environment variables of the process run as root?
|
KDE Developer
|
VISUAL=kwrite sudoedit /etc/somefile
This will copy the file as root to /tmp/ and change it so your user has access launch the editor in $VISUAL wait for the editor to exit as root copy the file back Safe. As you're running kwrite as you, you get all your settings. Including your personal kwrite specific things. Win win. |
Registered Member
|
Same thing for kdesudo and sudo, different for normal user.
kdesudo / sudo
And for my normal user it's:
Last edited by timorei on Wed Mar 04, 2015 9:40 am, edited 1 time in total.
|
KDE Developer
|
sudo -E would probably work.
It copies the env, including the all important KDE_FULL_SESSION=true |
Registered Member
|
testing...
|
KDE Developer
|
well it boils down to: don't combine sudo with GUI. It's evil and starts to fight back :-P
more seriously: kdesudo should probably changed to pass along KDE_FULL_SESSION |
Registered Member
|
Using this quite often to work on system (config) files.
What would be the best solution to open files as root? Would my solution be to set the environment variable for root? |
KDE Developer
|
>What would be the best solution to open files as root?
sudoedit that I posted earlier. It's better for numerous reasons. |
Registered Member
|
As reported: sudo -E kate test.txt
Just... shows up for a splitsecond then gone. I guess I'll stick to the all powerfull sudo vim. |
KDE Developer
|
sudoedit and sudo -E are not the same things.
This one
|
Registered Member
|
Ah ok - will take a look. Thanks. See what happens if one gets used to something as trivial as vim? *cough*
Thanks a lot. |
Registered Member
|
"kdesu kwrite" should work as well, I suppose. (note: kdesu, not kdesudo)
At least it does here in openSUSE. I have no idea whether this is installed by default in Kubuntu or not, though. It's in the package kde-cli-tools5 here. |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]