Problems with KDE preferences.

User preferences have been set.
Logged as root user, the preferences for root user have been set.

When logged as a normal user, there are problems with the user’s preferences when he is using some apps as a super user :
Yast : all fonts are very small
Dolphin: every objects use very small fonts and type is bad ( except for the tree which use the fonts selected in the view modes of dolphin preferences )
Kate : Same behavior ( except for font use for the file contents in the edit zone which are those selected in kate configuration )

The preferences applied do not match neither those of the user nor those of root.

Dolphin result : https://paste.opensuse.org/90968772Dolphin expected : https://paste.opensuse.org/79722269
Kate result : https://paste.opensuse.org/53944889
Kate expected : https://paste.opensuse.org/50898805
Yast result : https://paste.opensuse.org/40991650
Yast expected : https://paste.opensuse.org/81506554

Any help is welcome

To all who might think that using the GUI as root is something that is normally done (as the above post suggests).

While everybody should of course know her/himself how (s)he manages her/his systems, the general idea of those here on the forums is that it is not a good practice to log in as root in any GUI. The advice is strongly against it. Most people will never do it and thus be unable to help with problems that may be connected to such behaviour.
See also: https://en.opensuse.org/SDB%3ALogin_as_root

I never login to the GUI as root, as explained by hcvv.

The Yast font size (started within my session) looks about the same as when I run “yast2” from a user command line (from a terminal window). Note that “yast2” from a user command line only lists Yast units that don’t require root, but it is good enough for comparing font size.

The normal way things work, the desktop sets font requirements in the running X server, and applications use it from there. So Yast running normally (as root) in your user session is supposed to use those settings. But I suppose it is up to an individual application to decide that. When I look in the Yast settings files (“.config/YaST2/*.conf”), I don’t see anything that looks like a font setting.

Your stuff have nothing to do with the question.

I did not say it has and the message was not addressed to you. I warned others not to log in as root in the GUI.

Should Not.

Users spend times to configure their desktop.
If desired, users have the means to configure their preferences as far as possible thanks to the tools provided in ‘System Settings’. They therefore expect to find what they have configured.

For lack of information, It seemed logical to me that applications launched in super user mode have their preferences adjusted from the root account. This seems true for a number of properties.

In any case, the user must find the preferences he has defined himself whether he is in super user mode or not.

If it is not possible, remove ‘System Settings’.

Returning to my question, where to configure looks and feels applications when they are started in super user mode.

Any comments is welcome.

Hi,

I learned early not to log into KDE as root, so I can’t reproduce. But I do also see that it is kind of inconvenient that running programs as root requires to set preferences again. I face that after fresh installs using kdesu. I usually accept it to redo settings as I never tried to save preferences as user root. These setting are persistant, at least.

in Konqueror / Dolphin enter:

help:/kdesu

That seems to explain a lot. Sorry, I didn’t bother to read all of it.

If you are using plasma and want to configure the root user gui. e.g: font
You need to use the Qt5 Settings. I am using xfce but using kwin and use that from time to time.

su to root and the command will be

qt5ct

In Fonts settings select “Use another DPI” and change it according to your needs.
This will affect all users, including root.

Or copy user settings .kde4/share/config/ to root directory.

I doubt that “.kde4” is being used for anything related.

I am quoting my own post;)
That can be use use by user also.

I believe this is what the thread starter is looking.

Yes, I think that the Qt5 Configuration Tool should do the trick as well.

Once of a few guides…
https://wiki.archlinux.org/index.php/qt#GTK_and_Qt

I do not use that many GUI-applications in super user mode however dolphin is one i use quite frequently (YES and i’m NOT ashamed of doing so and i will continue to do so BUT i do not advise others to do it as well).

In order to configure things like “double-klick-behavior” or “font type/size” i log into plasma GUI as root (>:)shame on me>:)) and configure the appropriate behaviour for the root GUI (i strongly believe that is not that bad because it needs to be done only once after a new installation which does not happen that often especially if you use Tumbleweed like i do).

Regards

susejunky

I would like to thank all those who managed to upraise the debate and leave away the mystical phase of the root user in a GUI universe.

We therefore assume that the user’s environment has been configured accordingly to his tastes, as well as for the root user.

The question is not about having qt5 apps looking like GTK apps or vice versa

So starting dolphin in supper user mode from the KDE application launcher show this : https://paste.opensuse.org/90968772
the expected result is this : https://paste.opensuse.org/79722269

Is it normal or is there some kind of bug ?

Any help is welcome.

On my system both dolphin windows, user modus and super user modus, look the same. It’s up to you determining whether this is normal or a bug. :wink:

Without knowing the details of your dolphin+plasma-desktop-configuration for root and user it is impossible to tell what your dolphin should look like as root or as user and whether both should look the same.

As i already said in my last post:

From my experience dolphin started in super user mode uses /root/.config/dolphinrc and (at least to a certain degree) the setup of the super users plasma-desktop configuration; e.g. if the super users plasma-desktop is setup for “single-klick-action” dolphin (started in super user mode in a user environment with “double-klick-action”) will use “single-klick-action” although the user environment is setup for a different behaviour.

Regards

susejunky

>
> user modus and super user modus, look the same
>

Not for me.

I rewrite my question :
For what I know (which can be largely insufficient I admit ) I know 2 users whose preferences can be adjusted:

  1. Myself
    2°) the root user.
    Once the preferences are adjusted I expect to find what I have configured.
    When login as this two users, i get the expected configuration.

But (as an example) when I start dolphin from a script which is started with sudo ( or use sudo inside the script ) the mainly problem is that every things is smaller like if DPI has changed. You could see the difference as show on post #1

Dolphin result : https://paste.opensuse.org/90968772Dolphin expected : https://paste.opensuse.org/79722269

What I try to explain is that when using sudo, the application must be presented either as for the normal user or as for the root user (at the choice of the developer, I don’t care). But by no means in a third way.
And I have not found a way to correct this problem.
As you can see on the screenshot it is nearly not usable.

It is why i am speaking of bugs

Just compare the screenshot and look my comments at #17

Just report at https://bugs.kde.org/

Regards

susejunky

root has its own home directory /root and any gui object run as root has its setting in /root

You can start system setting as root and that should allow changing the root GUI settings