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.
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.
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.
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.
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).
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.
>
> 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:
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
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.