Bug 482962 - Plasma6: Inconsistent tray icon for gtk app
Summary: Plasma6: Inconsistent tray icon for gtk app
Status: RESOLVED DUPLICATE of bug 479712
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Tray (show other bugs)
Version: 6.0.0
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-09 10:24 UTC by lp
Modified: 2024-03-09 15:57 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The tray icon shows like an empy page icon in the tray, but like the correct icon in the settings. (67.03 KB, image/png)
2024-03-09 10:24 UTC, lp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lp 2024-03-09 10:24:11 UTC
Created attachment 166784 [details]
The tray icon shows like an empy page icon in the tray, but like the correct icon in the settings.

I'm using the Duplicati backup software, its tray icon that displayed correctly with KDE5 does not display with KDE6. I'm quite confident that this is a KDE problem, not a Duplicati problem, because the icon does not display in the tray, but it shows in the tray configuration ! See attached screenshot.

Duplicati provides several frameworks to display the tray icon:
--toolkit: Choose the toolkit used to generate the TrayIcon, note that it will fail if the selected toolkit is not supported on this machine.
    Supported toolkits: winforms, gtk, gtk-appindicator, cocoa
All of them seem to produce the same result.
Comment 1 HeathenHacks 2024-03-09 11:28:49 UTC
Not sure if this would be able to help, but I believe this has something to do with how icons behave differently on Plasma 6. (https://pointieststick.com/2023/08/12/how-all-this-icon-stuff-is-going-to-work-in-plasma-6/)

This time around, the way I understand it, all icons would depend on what icon pack you use. So, if the icon pack you're using doesn't have the specific icon that the application you use requires, it would display as a blank or in my case, an icon with a question mark on it. 

However, old workarounds seem to still work (upon my testing). 

Try to find the folder where your icon pack is installed.

on ~/.local/share/icons or /usr/share/icons or on /usr/share/plasma/desktoptheme/

After locating it, go inside the folder and try to look for the "index.theme" file, open it using text editor and look for "Inherits", there you can add other icon packs, so if the icon pack you're using doesn't have an icon for something, it would try to look for that icon on other icon packs.

As an example:

Inherits=hicolor,Materia,Materia-dark
Comment 2 lp 2024-03-09 12:25:46 UTC
May be related to [479712] I'll see if it is fixed as soon as Neon updates to 6.0.1
Comment 3 lp 2024-03-09 12:26:55 UTC
P.s. it is https://bugs.kde.org/show_bug.cgi?id=479712
Comment 4 Nicolas Fella 2024-03-09 15:57:14 UTC

*** This bug has been marked as a duplicate of bug 479712 ***