Bug 443334

Summary: Some flatpak programs don't show icons in taskbar
Product: [KDE Neon] neon Reporter: Martin Tlustos <martin.tlustos>
Component: Packages User EditionAssignee: Neon Bugs <neon-bugs>
Status: REPORTED ---    
Severity: normal CC: aleixpol, g.guerin, jgrulich, jr, kde, nate, neon-bugs, plasma-bugs, sitter
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: output ov env

Description Martin Tlustos 2021-10-05 05:56:36 UTC
SUMMARY
When starting a flatpak program, only a generic icon is shown in the taskbar. It doesn't matter which window list applet I use. Flatpak programs I observed this behaviour with so far are:

upnpcontrol
libreoffice
calibre

Programs that do show their correct icon:
Clementine
bibletime
boinc manager
flatseal
chromium
freeplane
gramps
homebank
inkscape
kdenlive


Operating System: KDE neon 5.22
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.3
Kernel Version: 5.11.0-37-generic (64-bit)
Graphics Platform: Wayland
Processors: 6 × AMD Ryzen 5 4500U with Radeon Graphics
Memory: 15.0 GiB of RAM
Graphics Processor: AMD RENOIR
Comment 1 Aleix Pol 2021-10-05 15:22:54 UTC
Moving to plasma, it has nothing to do with Discover.

It might well be it's a packaging issue but it needs a bit of research.
Comment 2 Nate Graham 2021-10-05 17:56:13 UTC
I tried a few of those on Fedora 34 and they all work for me.
Comment 3 David Edmundson 2021-10-05 22:34:03 UTC
Please enclose:
 - screenshot
 - confirm x or wayland
 - output of "xprop" and clicking on the app

output of "env"
Comment 4 Martin Tlustos 2021-10-07 06:16:49 UTC
Created attachment 142231 [details]
output ov env
Comment 5 Martin Tlustos 2021-10-07 06:17:28 UTC
it's wayland, so xprop doesn't work obviously... As far as I remember, the icons work under X, though.
Comment 6 Bug Janitor Service 2021-10-22 04:35:32 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 7 Martin Tlustos 2021-10-22 09:21:29 UTC
Hmm... libreoffice has the same problem even when installed from deb, so it probably has nothing to do with flatpak.
Comment 8 Nate Graham 2021-10-22 18:56:12 UTC
On Neon, I think it's expected for apps installed via CLI since those are no explicitly longer supported. Moving to Neon for further triage.
Comment 9 Gauthier 2022-03-11 09:18:10 UTC
I can confirm this bug on Neon with LibreOffice. On Wayland, a generic icon appears in task manager (I use icon-only task manager and have pinned icons for LO writer and calc but as soon as I launch either apps an extra generic black libreoffice icon appears and the pinned icon don't become active). 

I have Libreoffice installed and updated via discover from the libreoffice stable ppa repository and not as Flatpack. So I agree that this has probably nothing to do with Flatpack.

On X11 it works just fine.
Comment 10 Gauthier 2022-04-12 21:29:55 UTC
(In reply to Nate Graham from comment #8)
> On Neon, I think it's expected for apps installed via CLI since those are no
> explicitly longer supported. Moving to Neon for further triage.

Just read your comment so checked in Fedora 35 in a VM and I can reproduce this (at least on the live CD), so may not be neon specific.

Also all drop down menus seem broken (including drop down menu in cells).
Comment 11 Gauthier 2022-04-13 06:11:05 UTC
Sorry the unclarity of my previous comment.
What I meant was I installed Fedora 35 KDE edition in a VM (QEMU-KVM), and the Libreoffice icons in the task manager do not work properly on wayland. When you launch any of the LibreOffice app, you get the generic black icon instead of say the icon of the specific app (writer, calc, etc.).

(ignore what I said about drop down menu being broken, I'll file another bug)
Comment 12 Gauthier 2022-04-13 06:30:54 UTC
Actually for LO at least the issue is reported here but apparently needs a fix in Qt and a fix in LO for it to be resolved.
https://bugs.documentfoundation.org/show_bug.cgi?id=125934

Comment 15 of this post shows a workaround using window rules:
By right clicking on the title bar > more actions there is the possibility to configure special window settings. I have added the option Window Title, which should partly be equal to "Libreoffice Writer", then I enforce that with another option that the desktop filename "libreoffice-writer" is used. I repeat this for the other applications and now I have separate icons on my wayland taskbar for each libreoffice app.

Also it may be wider than Plasma / Qt since some issues on Gnome seem to be here too (might be a different problem though): https://ask.fedoraproject.org/t/broken-icon-for-libreoffice-writer-in-wayland/4987

Side track note: the issue mentioned about dropdown menu in Plasma wayland will be fixed in LO 7.3.3 which will make LO actually usable on wayland  :)  (I use many spreadsheet with dropdown cells): https://bugs.documentfoundation.org/show_bug.cgi?id=144585