| Summary: | plasma-workspace-5.24.0 sets Xft.dpi to 0 in Xresources | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Guillaume Castagnino <casta+kde> |
| Component: | Startup process | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | henry, kde, nate, plasma-bugs-null |
| Priority: | NOR | Keywords: | regression |
| Version First Reported In: | 5.24.0 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/commit/6c2d9d4a66db35ab208f194f6a37c7d0bc634d11 | Version Fixed/Implemented In: | 5.24.1 |
| Sentry Crash Report: | |||
|
Description
Guillaume Castagnino
2022-02-10 08:33:04 UTC
Good catch, looks like that's exactly what happens. `fontsCfg.readEntry(fontDpiKey, 0)` means "fall back to 0 if fontDpiKey isn't found". And then that 0 gets unconditionally written out. Would you like to submit a merge request to fix it? >Good catch, looks like that's exactly what happens. `fontsCfg.readEntry(fontDpiKey, 0)` means "fall back to 0 if fontDpiKey isn't found". And then that 0 gets unconditionally written out.
Just above we have:
if (!fontsCfg.hasKey(fontDpiKey)) {
return;
}
It means there is a key with this set to 0 set by someone.
So similar bug, but not the fault of my patch (obviously :D )
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1457 Git commit 0bb681869f0462e74d0c411e2108bf3e0d371dd5 by Nate Graham, on behalf of David Edmundson. Committed on 15/02/2022 at 00:38. Pushed by ngraham into branch 'master'. Move to runtime check of valid font DPI The current code checks if we have an entry, but not that the entry is sane. FIXED-IN: 5.24.1 M +3 -2 kcms/fonts/fontinit.cpp https://invent.kde.org/plasma/plasma-workspace/commit/0bb681869f0462e74d0c411e2108bf3e0d371dd5 Git commit 6c2d9d4a66db35ab208f194f6a37c7d0bc634d11 by Nate Graham, on behalf of David Edmundson. Committed on 15/02/2022 at 00:39. Pushed by ngraham into branch 'Plasma/5.24'. Move to runtime check of valid font DPI The current code checks if we have an entry, but not that the entry is sane. FIXED-IN: 5.24.1 (cherry picked from commit 0bb681869f0462e74d0c411e2108bf3e0d371dd5) M +3 -2 kcms/fonts/fontinit.cpp https://invent.kde.org/plasma/plasma-workspace/commit/6c2d9d4a66db35ab208f194f6a37c7d0bc634d11 |