Bug 455421

Summary: Thunderbird is shown with Generic Wayland Icon in Alt+Tab Dialog
Product: [Plasma] kwin Reporter: Lioh Moeller <lioh.moeller>
Component: tabboxAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: kde, mail, nate
Priority: NOR Keywords: wayland-only
Version First Reported In: 5.24.90   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Lioh Moeller 2022-06-16 15:31:47 UTC
On a pure Wayland System, with MOZ_ENABLE_WAYLAND=1 environment variable set, Thunderbird is shown as a generic Wayland Application in the Alt+Tab Dialog. The Icon within the tasklist in the taskbar is shown correctly.
Comment 1 Nate Graham 2022-06-16 20:15:18 UTC
Can confirm.
Comment 2 Nate Graham 2022-07-15 19:31:54 UTC
*** Bug 456773 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2022-07-19 14:53:36 UTC
See also https://gitlab.gnome.org/GNOME/gedit/-/issues/486
Comment 4 Vlad Zahorodnii 2023-07-06 09:08:25 UTC
Cannot reproduce it with 102.12. Reopen this bug report if the issue is still reproducible with latest plasma and thunderbird
Comment 5 Lioh Moeller 2023-07-06 09:14:10 UTC
It depends on your distribution:
To solve this, click on the icon on the left of the title bar in the program in question (Alt+F3) and select More actions / Set up special settings for this program. There, you add a new property of the type 'Desktop filename'. The value of the variable is the name of the .desktop file under /usr/share/applications/ or ~/.local/share/applications/ (for example mozilla-thunderbird instead of thunderbird).
Comment 6 Nate Graham 2023-07-14 11:31:36 UTC
Can reproduce with Plasma 6 (aka current git master) and Thunderbird 102.12.0 on Fedora 38.
Comment 7 David Edmundson 2023-08-02 13:26:25 UTC
Works for me too. It'll be a bug that needs to be fixed in thunderbird.

Can you provide output of

WAYLAND_DEBUG=1 thunderbird |& grep app_id

and 

ls /usr/share/application/*thunderbird*
Comment 8 Nate Graham 2023-08-02 13:44:13 UTC
$ WAYLAND_DEBUG=1 thunderbird |& grep app_id
588:[3530709.853]  -> xdg_toplevel@51.set_app_id("thunderbird")

$ ls /usr/share/applications/mozilla-thunderbird.desktop
/usr/share/applications/mozilla-thunderbird.desktop

$ grep Icon /usr/share/applications/mozilla-thunderbird.desktop
8:Icon=thunderbird

$ find /usr/share/icons/ -name thunderbird*
/usr/share/icons/HighContrast/scalable/apps-extra/thunderbird-icon.svg
/usr/share/icons/hicolor/256x256/apps/thunderbird.png
/usr/share/icons/hicolor/48x48/apps/thunderbird.png
/usr/share/icons/hicolor/24x24/apps/thunderbird.png
/usr/share/icons/hicolor/64x64/apps/thunderbird.png
/usr/share/icons/hicolor/22x22/apps/thunderbird.png
/usr/share/icons/hicolor/128x128/apps/thunderbird.png
/usr/share/icons/hicolor/symbolic/apps/thunderbird-symbolic.svg
/usr/share/icons/hicolor/32x32/apps/thunderbird.png
/usr/share/icons/hicolor/16x16/apps/thunderbird.png
Comment 9 David Edmundson 2024-02-19 16:38:44 UTC
thunderbird != mozilla-thunderbird.desktop

This is an application bug
Comment 10 Nate Graham 2024-02-20 20:19:54 UTC
...Or a distro bug. The root cause of the issue is that Thunderbird doesn't come with its own desktop file, so distros typically patch one in. I guess they're neglecting to make the app ID and desktop file name match, as is required to make the icon appear here as expected. This could explain why it works for some people using some distros, but not other people using other distros.

I'll follow up with Fedora.
Comment 11 Nate Graham 2024-02-20 23:21:52 UTC
Reported to Fedora at https://pagure.io/fedora-kde/SIG/issue/458.

Lioh, if you were using a different distro, you'll want do do a similar thing for your distro.