Bug 462680 - Icons don't respect scale factor when running apps in SuperUser mode
Summary: Icons don't respect scale factor when running apps in SuperUser mode
Status: RESOLVED DOWNSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Startup process (show other bugs)
Version: 5.26.4
Platform: openSUSE Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2022-12-05 18:20 UTC by imax
Modified: 2023-04-10 03:21 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Dolphin as User (200.99 KB, image/png)
2022-12-05 18:22 UTC, imax
Details
Dolphin as SuperUser (134.47 KB, image/png)
2022-12-05 18:22 UTC, imax
Details
YaST X11 (453.99 KB, image/png)
2022-12-05 18:23 UTC, imax
Details
YaST Wayland (365.74 KB, image/png)
2022-12-05 18:23 UTC, imax
Details

Note You need to log in before you can comment on or make changes to this bug.
Description imax 2022-12-05 18:20:52 UTC
- SUMMARY
When you run applications in a Wayland session as SuperUser, icons and elements are not scaled. E.g. Dolphin or YaST.
See attachments.
Global scale in my case: 200%

- STEPS TO REPRODUCE
open applications in SuperUser mode e.g. Dolphin or YaST

- OBSERVED RESULT
icons are too small

EXPECTED RESULT
icons properly scaled (in my case @200%)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.100
Qt Version: 5.15.7
Comment 1 imax 2022-12-05 18:22:22 UTC
Created attachment 154340 [details]
Dolphin as User
Comment 2 imax 2022-12-05 18:22:44 UTC
Created attachment 154341 [details]
Dolphin as SuperUser
Comment 3 imax 2022-12-05 18:23:03 UTC
Created attachment 154342 [details]
YaST X11
Comment 4 imax 2022-12-05 18:23:25 UTC
Created attachment 154343 [details]
YaST Wayland
Comment 5 Nate Graham 2022-12-05 20:57:32 UTC
Probably environment variables not propagating or something. That said, we don't support running apps as root/sudo. Apps that require it like YaST should be ported to use privilege escalation using KAuth or PolKit.

Does this work properly on X11, and it's only not working on Wayland?
Comment 6 imax 2022-12-06 01:46:00 UTC
Wrong scaling is only on Wayland. But it's only the icons and elements. I think the fonts scale properly.
Comment 7 Nate Graham 2023-04-10 03:21:22 UTC
Ultimately this is an issue in those apps, not a problem in the Plasma setup process. They need to be ported to polkit privilege escalation rather than running as root/sudo.