Administrator mode should adapt to Qt theme

Bug #18451 reported by tr.koch
56
Affects Status Importance Assigned to Milestone
kdebase (Ubuntu)
Won't Fix
Wishlist
Jonathan Riddell

Bug Description

When go into the "Administrator mode", widgets don't respect my style and color
settings. To change this, kdesu should load the user's settings from ~./qt

Revision history for this message
Kai F. Lahmann (kl) wrote :

they do, but ~ is /root in admin mode...

Revision history for this message
tr.koch (tristan-tknetwork) wrote :

I see. Any other suggestions to solve this?
Btw, When running sudo kcontrol, kcontrol respects my settings.

Revision history for this message
Bradley T Hughes (bhughes) wrote :

I can confirm this bug... I run a 1280x800 screen at 120 dpi... the default fonts for all things root is 12pt, which ends up being 20
pixels on my screen. This makes doing most administrative tasks painful or impossible as windows are generally too large and buttons
are placed off the bottom of the screen.

Revision history for this message
Robin (robin02) wrote :

Same thing here.

If I start synaptic from konsole with "sudo synaptic" it uses the kde theme (so
the ugly gnome theme is replaced).
But when I start it with "kdesu synaptic" it uses the plain ugly gnome theme
instead of the kde theme.

I think the normal behaviour of kdesu should be the same as 'su'.

Matt Zimmerman (mdz)
Changed in kdebase:
assignee: nobody → jr
Revision history for this message
Yuriy Kozlov (yuriy-kozlov) wrote :

On my kubuntu dapper system the style I set is not used with either kdesu or sudo.

Revision history for this message
Yuriy Kozlov (yuriy-kozlov) wrote :

This would probably be difficult to fix since the program that's running as root would somehow have to know what user launched it to use their .qt

Revision history for this message
Didier Raboud (odyx) wrote :

As the root is not meant to be activated, add a (root) script that would dynamically link /root/.qt to ~/.qt before launching GUI's?

Revision history for this message
Serhiy Kachaniuk (serzholino) wrote :

When i running KDE application either with kdesu or sudo, the app gets theme settings from root user(lipstik).
When running Qt-only apps - with sudo app has my theme settings(plastic), with kdesu app gets root's qt theme settings(windows), which is even not root's KDE theme(lipstik)

System: Kubuntu Dapper release

Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

presumably the settings in kubuntu-default-settings should be copied over to the root directory, like any new user?

Revision history for this message
Anthony Mercatante (tonio) wrote :

Basically, the kubuntu-default-settings are applying to any user, including root, as long as personnal settings are not set for that particular user too.

The settings are read and merged between the different config files in that order with that priority :
home folder > kds folder > /usr/share/apps/

As long as you customise either your account or the root one, there is not way to keep the parameters sync except copying ~/.kde too /root.

If you want to get that syncronized, what you can do is a script in /etc/init.d/rcS.d that copies /home/youruser/.kde and /home/youruser/.qt to /root.

There is no other way to make it automatic for us, basically because a system can have more than one user and it doesn't make sense synching the settings between all of them.

Secondly, the thing that makes kdesu doesn't use the gtk-qt-engines plugin is that the only way to get this confiured is with the first login, via the startkde script.

Sudo is using the user profile while kdesu is using the root one, and because there is no way to login as root by default, there is no way to get that gtk-qt-engine thing configured except copying from a configured profile.

I'm affraid there is no way to get that working as you all except, because touching too widely to kdesu implies security issues etc... although I admit that would be nice in that specific case :)

I don't have another option than to reject this, with the hope that maybe kde4 will deal with profiles differently.

Changed in kdebase:
status: Unconfirmed → Rejected
Revision history for this message
Rocco Stanzione (trappist) wrote :

I would like to un-reject this, because I think there's a bug here - maybe a wishlist bug (which isn't a bug)... but anyway... I think kdesu should behave like sudo. Our docs say to use kdesu in place of sudo for launching KDE GUI apps, and sudo preserves $HOME. I expect kdesu to behave similarly, as it serves a similar purpose, and I expect most users do too.

Changed in kdebase:
status: Rejected → Unconfirmed
Revision history for this message
Yuriy Kozlov (yuriy-kozlov) wrote :

How about having kdesu symlink /root/.qt and /root/.kde to the respective folders in /home/user? (at least rather than copying the folders) Is this possible?

Revision history for this message
Anthony Mercatante (tonio) wrote :

@ Rocco : It is very dangerous to let kdesu use the user's profile because the usage isn't the same.
Imagine the issues a software like kleansweep could cause with kdesu configured that way...

@ Yuriy : That's possible, but which account to link to ? There is not obviously one user account on a machine, there can be many of them, launched at the same time.
So even if you link manually, your trick can only work for one account.
Thus, this is not a possible solution for us.

Revision history for this message
klerfayt (klerfayt-deactivatedaccount) wrote :

so is there any hope hope that adept will behave same way as synaptics in the future, or the fact that user system settings can't be applied to package manager is the limitation of "kdesu"?
what happens then adept is launched with gksudo instead?

Revision history for this message
klerfayt (klerfayt-deactivatedaccount) wrote :

Can you make adept behave similar to synaptic packager manager, that does integrate better with customized desktop? (I guess synaptic uses some sort of workaround?)

Revision history for this message
Che Guevara (che-guevara-3) wrote :

We probably could use gksudo instead, but that will attract unnecessary GTK dependencies to a KDE installation.
Synaptic uses gksudo unless I am mistaken.

Revision history for this message
Yuriy Kozlov (yuriy-kozlov) wrote :

Tonio, is there some way to fix this in kdesudo?

Changed in kdebase:
importance: Low → Wishlist
Revision history for this message
klerfayt (klerfayt-deactivatedaccount) wrote :

fixed in gutsy gibbon ;-)

Changed in kdebase:
status: New → Fix Released
Changed in kdebase:
status: Fix Released → New
Revision history for this message
Anthony Mercatante (tonio) wrote :

Yep, I should have commented on this bug before, but kdesudo, replacement for kdesu, fixes those user<>root profiles issues

Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

marking as fix released, based on Anthony's comment.

Changed in kdebase:
status: New → Fix Released
Revision history for this message
klerfayt (klerfayt-deactivatedaccount) wrote :

what happened? why the recent regression? Adept no longer adapts customized kde like it did then 7.10 was released.

Revision history for this message
Anthony Mercatante (tonio) wrote :

The reason of the regression is that letting the root profile write in the user's one make touched files unwriteable.
Therefore, there is no proper solution to let root started apps use the users profile...

Changed in kdebase:
status: Fix Released → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.