well, that seems to allow other values as well (qt5ct, gtk2, gnome, kde) i’d try them one by one , perhaps they change something in how the icon is rendered/displayed …
I couldn’t find a comprehensive list anywhere, but I was able to find a number of hypothetical values from looking at a variety of different Q-A threads like this one across the net. I tried each of these values individually and none made any difference:
Honestly, I have no idea what I’m doing. I’ve compiled snippets from a bunch of sources and created a product that basically works, without a lot of understanding of how all the pieces fit together. I don’t know what a “desktop launcher” is. Are you saying I can get rid of the whole desktop-gtk part in my YAML? And if I did that, might that help with the icon? Do I need to replace the desktop-gtk part with something else?
I would probably know more about the YAML if re-snapping didn’t take so long, because I’d mess with it more to remove unnecessary stuff. But snapping takes so long that once I get something that works I stop messing with it!
Tray icon issues is with he system that you are using, QSystemTrayIcon works with almost every system tray provider and its cross platform too.
We tested that there is nothing wrong with packaging an app that uses QSystemTrayIcon class inside snap as the systray itself do not show icon of qbittorrent normal install. Raise the issue with the budgie desktop env about the issue do not include snaps, tell them there is no icon in system tray for qbittorrent .deb install or what ever way you tried.
An update, QBitTorrent snap does not show icon here on XFCE desktop environment. But shows an entry, hence there is something wrong with QBittorrent App, as all my apps that uses QSystemTray shows tray icon entry here perfectly.
FYI the issue is being tracked in https://github.com/Arnatious/qbittorrent-snap/issues/2 as well. Long ago I tried seeing if the kde base snaps would help but they were not available for core20 at the time. I’ll try investigating those again.
From what my investigations wrought, the tray icon isn’t getting set. Stderr shows a clear message of
QSystemTrayIcon::setVisible: No Icon set
It might be a dbus issue, but I’m not an expert in Qt or desktop apps so it’s beyond me to solve.
It tries to get the icon from icon theme, but icons in the snap and on the host are different and snap doesn’t mount icons from the host, so this will never work reliably.
Adding the KDE framework snap was enough to provide the correct theming and icons. The changes in the linked PR are the equivalent of adding the kde-neon extension, which is amd64 only because the core18 frameworks aren’t published for arm64.
For anyone reading this with a similar problem, snapcraft expand-extensions when using the kde-neon extension with a core20 snap will get you the yaml you need to get it working on amd64 and arm64, just make the changes manually and remove the extension afterwards.
No luck for 32bit users (who are still a decent chunk of my qbittorrent users).