| Summary: | Should we not enforce the environment of QT_AUTO_SCREEN_SCALE_FACTOR under wayland? | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | ihipop <ihipop> |
| Component: | Startup process | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | dantmnf2+kdebugs, kde, nate |
| Priority: | NOR | ||
| Version First Reported In: | 5.27.4 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/-/commit/b19511f06176ea758259203f5b78a227a59b4867 | Version Fixed/Implemented In: | 6.4.0 |
| Sentry Crash Report: | |||
| Attachments: |
virtualbox with QT_AUTO_SCREEN_SCALE_FACTOR=0 looks like this very ugly
virtualbox with QT_AUTO_SCREEN_SCALE_FACTOR=1 , just looks well as windows/X11 |
||
|
Description
ihipop
2023-05-02 15:32:38 UTC
Created attachment 158626 [details]
virtualbox with QT_AUTO_SCREEN_SCALE_FACTOR=1 , just looks well as windows/X11
If you have apps that require QT_AUTO_SCREEN_SCALE_FACTOR to be set to something, then: 1. you should report this to the developers of the apps, because ideally this shouldn't be required 2. You can set it in the environment of each app as a workaround using KMenuEdit But please do report it to the developers of the affected apps. The issue here is QT_AUTO_SCREEN_SCALE_FACTOR is (erroneously?) set to 0 in Plasma Wayland session, rather than leaving it unset: https://invent.kde.org/plasma/plasma-workspace/-/blob/90b914635b23a3f8a2ab6445cfa8b2f6468a2f44/startkde/startplasma.cpp#L357 In Plasma X11 sessions we set QT_SCREEN_SCALE_FACTORS which will override QT_AUTO_SCREEN_SCALE_FACTOR, but we are missing this for XWayland. (In reply to dantmnf from comment #3) > The issue here is QT_AUTO_SCREEN_SCALE_FACTOR is (erroneously?) set to 0 in > Plasma Wayland session, rather than leaving it unset: > https://invent.kde.org/plasma/plasma-workspace/-/blob/ > 90b914635b23a3f8a2ab6445cfa8b2f6468a2f44/startkde/startplasma.cpp#L357 > > In Plasma X11 sessions we set QT_SCREEN_SCALE_FACTORS which will override > QT_AUTO_SCREEN_SCALE_FACTOR, but we are missing this for XWayland. I second that, force it to "0" and environments settled in the `EnvironmentScripts` will be overwritten, while X11 sessions works The title should be reverted to its original purpose https://bugs.kde.org/show_activity.cgi?id=469273 because somebody changed it which is "should we not enforce the environment of QT_AUTO_SCREEN_SCALE_FACTOR under wayland?" Git commit b19511f06176ea758259203f5b78a227a59b4867 by Fushan Wen, on behalf of Poscat. Committed on 18/04/2025 at 13:48. Pushed by fusionfuture into branch 'master'. Avoid setting unneeded environment variable This is override is unneeded. It was introduced as a workaround of a QT bug that was subsequently fixed, and causes issues in some QT apps such as vivado's docnav. Closes https://invent.kde.org/plasma/plasma-workspace/-/issues/146 FIXED-IN: 6.4.0 M +0 -4 startkde/startplasma.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/b19511f06176ea758259203f5b78a227a59b4867 |