Bug 483492 - python icons not showing correctly in Task Manager in KDE 6
Summary: python icons not showing correctly in Task Manager in KDE 6
Status: REOPENED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (show other bugs)
Version: 6.0.2
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-13 22:40 UTC by Aaron Wolf
Modified: 2024-09-09 19:43 UTC (History)
4 users (show)

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


Attachments
icon issue with KDE 6 and Python in Task Manager (12.38 KB, image/png)
2024-03-13 22:40 UTC, Aaron Wolf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Wolf 2024-03-13 22:40:47 UTC
Created attachment 167132 [details]
icon issue with KDE 6 and Python in Task Manager

I'm on Neon User Edition. Icons for programs like Cadence show correctly as *launchers* but the launcher is no longer associating correctly with the running programs which now show a different strange icon. This happens with multiple Python-based programs.

In the screenshot, Cadence is the red icon, and the strange yellow W circle is the running Cadence program.
Comment 1 Nicolas Fella 2024-03-20 19:57:48 UTC
The problem with Cadence only appears on Wayland, not X11. It does not correctly pass its desktop file name to the window system.

Fixing it in Candence is trivial by adding "app.setDesktopFileName("cadence")" in cadence.py. 

However I'm not sure where I should submit that change. https://github.com/falkTX/Cadence looks like the canonical upstream, but it is marked as archived.

Other applications need a similar fix
Comment 2 Aaron Wolf 2024-03-24 16:58:07 UTC
(In reply to Nicolas Fella from comment #1)

> Fixing it in Candence is trivial by adding
> "app.setDesktopFileName("cadence")" in cadence.py. 
> 
> However I'm not sure where I should submit that change.
> https://github.com/falkTX/Cadence looks like the canonical upstream, but it
> is marked as archived.
> 

That is the main repo as far as I know, and I guess it has just not had attention in a long while.

I also have the issue with Task Coach which is another stagnant, outdated (but still used) Python application

And I have a strange issue with Hydrogen (which is actively developed still), I built the newest version, and the icon shows *correctly* in the launcher but in Hydrogen's own *window* the titlebar has the strange W icon, the same as the other programs. Should I open a new issue for that?

> Other applications need a similar fix
Comment 3 Aaron Wolf 2024-07-26 20:06:11 UTC
I'm tempted to re-open this, but just commenting for now to note that this issue shows up with other examples too. Mumble is another case.

There's no way to get the icon from whatever used to work? Need to just report the issue to each upstream?
Comment 4 Aaron Wolf 2024-09-09 19:43:39 UTC
I don't like the idea of getting every app to fix this upstream. I see the same icon for Mumble, Cadence suite, Task Coach, Dino, and others… and they all show the icons correctly in the KDE **Launcher**! If the launcher shows the right icons, then I see no reason the Task Manager should have trouble doing the same. Just use the same mechanism for showing the icons as the launcher, and everything will be fixed!