Bug 413690 - missing icon in the preview of several task switchers
Summary: missing icon in the preview of several task switchers
Status: REOPENED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_kwintabbox (show other bugs)
Version: 5.90.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-31 22:41 UTC by Patrick Silva
Modified: 2024-02-12 15:29 UTC (History)
4 users (show)

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


Attachments
preview of Large Icons task switcher (207.48 KB, image/png)
2019-10-31 22:41 UTC, Patrick Silva
Details
some kwin and plasma config files (16.47 KB, application/gzip)
2021-11-21 11:00 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2019-10-31 22:41:04 UTC
Created attachment 123633 [details]
preview of Large Icons task switcher

STEPS TO REPRODUCE
1. open system settings > window management > task switcher
2. under "Visualization" select any of the following task switchers
grid
large icons
small icons
informative
compact
breeze
3. click on the preview button beside the dropdown

OBSERVED RESULT
missing icon in the task switcher preview.
Attached screenshot shows the Large Icons case.

EXPECTED RESULT
no icon is missing

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.17.2
KDE Frameworks Version: 5.63.0
Qt Version: 5.13.2
Comment 1 Nate Graham 2019-11-04 14:46:06 UTC
Do you have Thunderbird, KMail, or any other email client installed? And what is the default email client set to in System Settings > Applications > Default Applications > Email Client?
Comment 2 Patrick Silva 2019-11-06 20:52:03 UTC
(In reply to Nate Graham from comment #1)
> Do you have Thunderbird, KMail, or any other email client installed? And
> what is the default email client set to in System Settings > Applications >
> Default Applications > Email Client?

both thunderbird and kmail are installed here.
"Use kmail as prefered email client" radio button is selected in System Settings > Applications >
> Default Applications > Email Client.
Comment 3 Vlad Zahorodnii 2019-11-21 14:29:06 UTC
A shot in the dark: try to delete the icon cache

    rm ~/.cache/icon-cache.kcache
Comment 4 Patrick Silva 2019-11-21 14:36:13 UTC
(In reply to Vlad Zahorodnii from comment #3)
> A shot in the dark: try to delete the icon cache
> 
>     rm ~/.cache/icon-cache.kcache

it did not work. :(
Comment 5 Vlad Zahorodnii 2019-11-21 14:53:56 UTC
Another shot in the dark:

    kbuildsycoca5 --noincremental
Comment 6 Patrick Silva 2019-11-21 17:23:36 UTC
(In reply to Vlad Zahorodnii from comment #5)
> Another shot in the dark:
> 
>     kbuildsycoca5 --noincremental

nothing changed
Comment 7 Patrick Silva 2021-05-16 23:24:24 UTC
it's happening on neon unstable too, but only on one of my two user accounts.
I do not know the exact steps to reproduce yet. :(

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.22.80
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2
Graphics Platform: Wayland
Comment 8 kde.org 2021-11-06 14:12:20 UTC
KDE 5.22.5, cannot reproduce the issue. You mention that it works for one user and doesn't work for the other. What happens if you create a new user? I suspect this is a problem with a stale config or cache file and works fine for newly created users. If it works for a newly created user, please compare the config files to try an spot the difference between them that could cause this issue.
Comment 9 Patrick Silva 2021-11-06 14:31:45 UTC
(In reply to kde.org from comment #8)
> KDE 5.22.5, cannot reproduce the issue. You mention that it works for one
> user and doesn't work for the other. What happens if you create a new user?
> I suspect this is a problem with a stale config or cache file and works fine
> for newly created users. If it works for a newly created user, please
> compare the config files to try an spot the difference between them that
> could cause this issue.

I'm unable to reproduce with a new user account created right now.
However, the bug persists with my main user account.
Which config files should I compare?

Operating System: Arch Linux
KDE Plasma Version: 5.23.2
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
Graphics Platform: X11
Comment 10 kde.org 2021-11-06 14:57:22 UTC
I don't know which particular files might have an impact. I guess you should start comparing all files in .config and .cache.
Maybe start by renaming .cache to .cache.orig for your main user.
Before that you might want to try to chance the theme and maybe also the the icon theme used for your main user to whatever is used for the new user you created by default. If that doesn't fix it, well, here is a list of things you can try.

Log out of the desktop with your main user
Switch to a terminal (CTRL-ALT-F2)
log in

mv .cache .cache.orig
mkdir .cache

switch back to Desktop login (ALT-F1)
Login
see if the problem still persists
If it's fixed, fine. If not, you can log out from the desktop
switch to terminal and restore the original cache directory. Shouldn't really be needed, as it's only cache, but who knows.

If it's not fixed, compare all files under .config. Start with the ones that that have kwin or plasma in their names. 

Good luck finding the issue :-)
Comment 11 Bug Janitor Service 2021-11-21 04:40:30 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 12 Patrick Silva 2021-11-21 11:00:53 UTC
Created attachment 143799 [details]
some kwin and plasma config files

I have renamed the .chache folder, but this did not help. I have also compared some config files of Kwin and Plasma but I'm unable to find any difference that could cause the bug. I'm attaching these config files from both buggy and normal user accounts just in case someone want to investigate.
Comment 13 David Edmundson 2023-09-06 10:39:09 UTC
This bug was reported against an outdated version of KWin. We have made many changes since the. 
If the issue persists in newer versions can you reopen the bug report updating the version number.
Comment 14 Patrick Silva 2023-12-02 22:43:30 UTC
it's still reproducible.

Operating System: Arch Linux 
KDE Plasma Version: 5.90.0
KDE Frameworks Version: 5.246.0
Qt Version: 6.6.1
Graphics Platform: Wayland
Comment 15 Ismael Asensio 2024-01-15 20:21:46 UTC
I was experiencing this same issue, but with Firefox. 

The issue seems to be, as the comments suggest, that the preferred application for that category (mail viewer in your case) do not have an icon, so the `ApplicationServiceTrader` cannot find a valid icon to show in the preview.

If, in the "Preferred applications" page, the combobox shows no icon for that category, very likely the window switcher will not show it either.

I could fix the issue by:
1. Found an old version of `firefox.desktop` on `.local/share/applications` with no "Icon=firefox" key within. 
2. Delete that .desktop file
3. In "Preferred Applications", find and select "Firefox Web Browser" from the list of applications (again, as it is probably a different desktop file, this time, with the correct icon).
4. After that, running `kbuildsycoca6 --noincremental` to rebuild the internal cache (maybe restarting the session too)

If you'd like, you can check if there is such a similar stray .desktop file that is messing with the icon for your preferred email client.

As a failsafe we could use the fallback icon (and app name?) for the previews if the icon is missing. 
They're just placeholders to showcase the switcher anyway.
Comment 16 Patrick Silva 2024-02-12 15:29:28 UTC
On my system, the icon of Firefox is missing from the previews of Thumbnail Grid and Large Icons task switchers.
I found two .desktop files of firefox in .local/share/applications (one probably installed with Firefox from Arch repos, another one created with kmenuedit). I deleted both .desktop files, chose and applied "Firefox Web Browser" in Default Applications KCM (before deleting the mentioned .desktop files, Firefox was not available as an option in the KCM), ran "kbuildsycoca6 --noincremental", rebooted and the bug persists.

Operating System: Arch Linux 
KDE Plasma Version: 5.93.0
KDE Frameworks Version: 5.249.0
Qt Version: 6.7.0
Graphics Platform: Wayland