Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Screen-Scaling for applications running as sudo

If none of the specific sub-forums seem right for your thread, ask here.
Message
Author
Thomas123
Posts: 36
Joined: 2018-10-29 09:18

Re: Screen-Scaling for applications running as sudo

#21 Post by Thomas123 »

Thank you wizard10000 for your help!

So what I did:

Code: Select all

sudo -i
sudo chown -R ich:ich /home/ich
systemsettings5
And in the settings which opens up then ... I changed font-sizes ... with no effect. But if I change DPI ... it effects all the applications I open after that as the normal user.

User avatar
wizard10000
Global Moderator
Global Moderator
Posts: 622
Joined: 2019-04-16 23:15
Location: southeastern us
Has thanked: 81 times
Been thanked: 98 times

Re: Screen-Scaling for applications running as sudo

#22 Post by wizard10000 »

Thomas123 wrote:...But if I change DPI ... it effects all the applications I open after that as the normal user.
That might be a global setting.
we see things not as they are, but as we are.
-- anais nin

Thomas123
Posts: 36
Joined: 2018-10-29 09:18

Re: Screen-Scaling for applications running as sudo

#23 Post by Thomas123 »

wizard10000 wrote:That might be a global setting.
Yes, changing the DPI and changing the overall scaling factor ... both seem to be global settings.

And changing the font size has no effect at all. Neither for the normal user nor for root.

:-(

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: Screen-Scaling for applications running as sudo

#24 Post by L_V »

Thomas123 wrote:So I have scaled my screen by a factor of 1.4 in the KDE-screen-settings.
Now this seems to only apply to the normal user.
This is unclear. Why do you need this ? What is the purpose ?
Thomas123 wrote:And if I run apps as sudo
sudo is a command to execute commands in a terminal , but certainly not to launch graphical applications.
This was the role of kdesudo until Buster.
https://packages.debian.org/stretch/kdesudo

Now it's a fact, kdesudo does not exist anymore. Is it a problem ?
Describe what you precisely want to achieve, and there is may be a solution.

Example, there is absolutely no problem in you user environment to have both user and root sessions open in the same user Konsole window.
(see profile feature of Konsole).
Image

As user, I can navigate in Dolphin in /etc/ directory, open /etc/fstab with kate or kwrite, edit fstab, and save it: a password will be requested because root is the owner of fstab.
I can also simply edit fstab in a terminal

Code: Select all

sudo -e /etc/fstab
Then, no problems, but solutions.
Thomas123 wrote:sudo thunar
Good summary: two words, two mistakes.
Why Thunar which is a gnome application in KDE, with Dolphin which is a very good file browser.
You are looking for problems.

Thomas123
Posts: 36
Joined: 2018-10-29 09:18

Re: Screen-Scaling for applications running as sudo

#25 Post by Thomas123 »

Thank you L_V for your help!
L_V wrote:
Thomas123 wrote:So I have scaled my screen by a factor of 1.4 in the KDE-screen-settings.
Now this seems to only apply to the normal user.
This is unclear. Why do you need this ? What is the purpose ?
Why I have the scale factor of 1.4? ... Because otherwise everything on my screen is way too small to be useable. Yes, I could increase the size of fonts and symbols etc. separately, but certain things can not be addressed this way.

L_V wrote:Now it's a fact, kdesudo does not exist anymore. Is it a problem ?
Describe what you precisely want to achieve, and there is may be a solution.
I want to use a graphical file browser (preferably dolphin) to navigate to /etc/fstab for instance and other files like it and rename them, copy them, delete them etc. without putting in my password each time.
L_V wrote:Why Thunar which is a gnome application in KDE, with Dolphin which is a very good file browser.
Until now I just did: sudo dolphin.
Now this doesn't work in Buster at all. Sudo thunar does work, but thunar is displayed too small to be usable.

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: Screen-Scaling for applications running as sudo

#26 Post by L_V »

I wonder if you have the correct firmware.
Don't understand why you can't adjust your screen resolution with

Code: Select all

kcmshell5 kcm_kscreen
You should have something totally correct by default. I have never modified this setting.

If you insist with your "sudo thunar" or "sudo dolphin", it will be without me: you will need a specialist to explain how to make wrong things.
In Dolphin, you can have a terminal window with "F4" key, and to rename a root file...

Code: Select all

sudo mv abcd xyzt
Don't see what it complicated.
And I hope you don't have to rename root files every day: if so, be ready for more problems to come.

Thomas123
Posts: 36
Joined: 2018-10-29 09:18

Re: Screen-Scaling for applications running as sudo

#27 Post by Thomas123 »

My screen resolution is set to the preferred monitor resolution. ... Maybe I just like things to be a bit bigger and easier to see also from a little more distance.

The scaling function is wonderful for everything else. And I guess it is there for a reason too and I am not the only one using it.

And yes of course ... the terminal is always here and everything can be done from the terminal and I am able to do so too. ... But for the last 10 years, that I am using Linux, it was so damn convenient to "sudo dolphin". Without any problem ever. Just wonderful!

You could do everything then, even double click to open fstab in a graphical text editor and modify it without having to type in your password once more (because dolphin was already running as root). And rename, and delete, and move etc. ... everything so easy and convenient in just one single place. ... and without having to type tons of characters. ... Now this seems to be gone. What a pity.

Maybe you will understand this feeling, once the terminal will be gone too and you will have to resort to typing in 0's and 1's again. ... ;-)

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: Screen-Scaling for applications running as sudo

#28 Post by L_V »

Thomas123 wrote:My screen resolution is set to the preferred monitor resolution. ... Maybe I just like things to be a bit bigger and easier to see also from a little more distance.
Then modify the fonts size and the icon size if necessary.
You have everything in systemsettings5 to do this.
I would not change the screen default resolution, but I don't have your screen and eyes to confirm.

For the other part, quite convinced you have bad practices: I will not help you with your "sudo any_graphic".
Quite sure you are going to break something in the coming weeks, and will ask for help.

+ keep in mind this if necessary for you. Dolphin root actions.

Thomas123
Posts: 36
Joined: 2018-10-29 09:18

Re: Screen-Scaling for applications running as sudo

#29 Post by Thomas123 »

Like I wrote to you in my second to last post:
Thomas123 wrote: Yes, I could increase the size of fonts and symbols etc. separately, but certain things can not be addressed this way.
And to your:
L_V wrote:Quite sure you are going to break something in the coming weeks, and will ask for help.
Like I said: I used "sudo dolphin" for 10 years without any problems. There was no need to ask for help.

And yes, the Dolphin root actions are a workaround and not too bad. But also not available per default anymore, like they used to be.

It would be nice, to get a confirmation from you, regarding all the regressions I described in detail.

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: Screen-Scaling for applications running as sudo

#30 Post by L_V »

What you call "regression" is your perception, especially if you did not know the role of kdesudo or gksudo for Gnome (maybe developers lost their time).
A question not clear to me: why do you have to modify so often system files, and rename them ? I never do, or never in graphic mode.

We don't have the same use of a desktop, and the same need.
I am not the right person to help you in your direction.
Sorry.

Thomas123
Posts: 36
Joined: 2018-10-29 09:18

Re: Screen-Scaling for applications running as sudo

#31 Post by Thomas123 »

Thank you for trying, though!

BokiBall
Posts: 1
Joined: 2020-05-30 09:23

Re: Screen-Scaling for applications running as sudo

#32 Post by BokiBall »

was it possible that nobody want to help?

Things in Debian changed so much with this buster update, everything that was working before doesn't work anymore, and now it's forbidden to do whatever we want because it's graphically?

Can you read this? If you can't that means you're in nothing different than me. This one is bigger than the one I have when I launch root programs

Post Reply