Bug 499106 - tabbox KCM - window switcher examples are confusing
Summary: tabbox KCM - window switcher examples are confusing
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_kwintabbox (show other bugs)
Version: 6.2.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2025-01-24 20:44 UTC by Raphael Kubo da Costa
Modified: 2025-01-28 00:11 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael Kubo da Costa 2025-01-24 20:44:34 UTC
This KCM ships with a set of thumbnails that are used when one wants to test a given window switcher: dolphin.png, falkon.png, kmail.png, systemsettings.png

The problem is that it then looks for the default handlers for mimetypes related to these PNGs: respectively "inode/directory", "text/html", "message/rfc822" and "kdesystemsettings".

If one has configured different handlers for some of those mime types, it is easy to end up in a situation where the thumbnail clearly shows KMail but the title says "Thunderbird", or there's a Falkon thumbnail accompanied by a text saying "Firefox".
Comment 1 Bug Janitor Service 2025-01-27 21:44:08 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/7065
Comment 2 Nate Graham 2025-01-28 00:11:19 UTC
Git commit fafdf099cdf6b323d3cf41111fd802e7d0dbe677 by Nate Graham.
Committed on 27/01/2025 at 23:41.
Pushed by ngraham into branch 'master'.

kcms/tabbox: hardcode app names and icons in the preview

Right now the thumbnails are hardcoded, but the app names and icons are
not, and change based on the user's default apps. This is nonsensical;
the thumbnail won't match what the name and icon claim the app to be.

Let's stop doing that and instead just hardcode the names and icons to
match the thumbnails.
FIXED-IN: 6.4.0

M  +17   -13   src/kcms/tabbox/layoutpreview.cpp

https://invent.kde.org/plasma/kwin/-/commit/fafdf099cdf6b323d3cf41111fd802e7d0dbe677