Bug 384591

Summary: Tray icon for qBittorrent
Product: [Plasma] Breeze Reporter: Eugene Shalygin <eugene.shalygin+bugzilla.kde>
Component: IconsAssignee: visual-design
Status: CONFIRMED ---    
Severity: wishlist CC: chsqwyx, jensreu, kainz.a, mohsun.babayev, nate, null, onurmercury, timaadu756, tinozzo123
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=473215
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot of qbittorrent in kde Plasma 6 showing that qbittorrent's tray icon is invisible

Description Eugene Shalygin 2017-09-11 11:19:01 UTC
Starting from (unreleased) version 4, qBittorrent uses "qbittorrent-tray" icon name for the tray icon. Could you provide these icons, please?
Comment 1 andreas 2017-09-11 12:09:58 UTC
sure will have a look

can you submitt a screenshot AND the icon name of the used icon if you know it.
Comment 2 Eugene Shalygin 2017-09-11 12:21:02 UTC
We use the app icon (https://github.com/qbittorrent/qBittorrent/blob/master/dist/unix/menuicons/128x128/status/qbittorrent-tray.png) for tray and additionally provide two more icons for dark and light themes:
https://github.com/qbittorrent/qBittorrent/blob/master/src/icons/skin/qbittorrent-tray-dark.svg
https://github.com/qbittorrent/qBittorrent/blob/master/src/icons/skin/qbittorrent-tray-light.svg

I guess you can just symlink the app icon (already present in Breeze) into status/qbittorrent-tray.svg.
Comment 3 Eugene Shalygin 2017-10-25 12:49:40 UTC
Are there any news? Let me remind that I'm requesting a symlink only, not a new icon.
Comment 4 Jens Reuterberg 2017-10-26 09:13:10 UTC
There is one more in Breeze too right?
Comment 5 Eugene Shalygin 2018-02-14 17:24:09 UTC
@andreas: the issue seems to be stalled for a while. Why?

(In reply to Jens Reuterberg from comment #4)
> There is one more in Breeze too right?

Pardon, I'm not sure that I do understand your question. Do you ask whether the icon in the Breeze repo differs from the icons in the qBittorrent repo? If so, yes they do differ.
Comment 6 Unknown 2024-02-04 14:03:28 UTC
Created attachment 165539 [details]
Screenshot of qbittorrent in kde Plasma 6 showing that qbittorrent's tray icon is invisible
Comment 7 Unknown 2024-02-04 14:07:31 UTC
I am not sure if this is related.

I compiled and installed Plasma 6, an now qbittorrent's tray icon is invisible.

signal-desktop tray icon works.

using:
    qBittorrent v4.6.3 (64-bit)
    KDE Plasma v5.93.0 (Wayland)
Comment 8 Nate Graham 2024-02-05 19:44:24 UTC
Definitely related. What happened here is that your icon theme lacks the "qbittorrent-tray" icon, and now in Plasma 6, if the Plasma theme has that icon, it's not used.

However this is also an issue of the app itself or how it's been packages, since it's assuming that the icon theme has that icon and apparently not installing its own version of qbittorrent-tray in the hicolor icon theme. So even though we should add a "qbittorrent-tray" icon in the Breeze icon theme, I'd also recommend contacting the app developers and letting them know that they could benefit from shipping an unthemed version of that icon themselves.
Comment 9 Unknown 2024-02-06 09:28:58 UTC
I am using nix. and NixOS don't respect FHS, so i will see if this problem is only in nix, and report the bug in nixpkgs, if not i will report it in qBittorrent upstream.
Comment 10 Unknown 2024-02-06 09:34:46 UTC
it's already reported in qBittorrent upsteam: https://github.com/qbittorrent/qBittorrent/issues/20367
Comment 11 Unknown 2024-02-06 09:57:20 UTC
(In reply to Nate Graham from comment #8)
> However this is also an issue of the app itself or how it's been packages,
> since it's assuming that the icon theme has that icon and apparently not
> installing its own version of qbittorrent-tray in the hicolor icon theme. So
> even though we should add a "qbittorrent-tray" icon in the Breeze icon
> theme, I'd also recommend contacting the app developers and letting them
> know that they could benefit from shipping an unthemed version of that icon
> themselves.

there is already qbittorrent-tray icon in the hicolor icon theme, it's located here:

/nix/store/qbittorrent-4.6.3/share/icons/hicolor/128x128/status/qbittorrent-tray.png

i don't know if plasma or qBittorrent can't find the icon?
Comment 12 Nate Graham 2024-02-06 17:33:56 UTC
Interesting. Needs investigation.

FWIW I can reproduce the issue on my Fedora 39 system, so I wouldn't blame NixOS here. I can see that `qbittorrent-tray` (as well as -tray-light and -tray-dark variants) are installed in hicolor, but the icon on the Plasma panel is invisible.

This seems like a separate issue from the lack of an appropriate Breeze themed icon though. Can you submit a new bug report about this against plasmashell | system tray?
Comment 13 Möhsün Babayev 2024-03-07 11:04:11 UTC
The issue is present in Arch Linux and KDE Plasma 6.0.1. I am using Tela icon theme which also has 'qbittorrent-tray' icon.

A comment on the upstream GitHub issue mentions enabling "Use icons from system theme" option in qBittorrent preferences fixes the issue, which I can confirm. So, it looks the problem stems from both sides.

https://github.com/qbittorrent/qBittorrent/issues/20367#issuecomment-1982310025
Comment 14 Onur Ankut 2024-03-07 23:49:11 UTC
(In reply to Nate Graham from comment #12)
> Interesting. Needs investigation.
> 
> FWIW I can reproduce the issue on my Fedora 39 system, so I wouldn't blame
> NixOS here. I can see that `qbittorrent-tray` (as well as -tray-light and
> -tray-dark variants) are installed in hicolor, but the icon on the Plasma
> panel is invisible.
> 
> This seems like a separate issue from the lack of an appropriate Breeze
> themed icon though. Can you submit a new bug report about this against
> plasmashell | system tray?

I can reproduce this issue on both Arch Linux and Fedora. AppImage version of qBittorrent doesn't have this problem, but it also doesn't use the custom icons I've set either and I'm currently creating a status icon for qBittorrent.

As far as I know, this issue is not directly linked to the Breeze theme. A similar problem also occurred last year.
(https://github.com/qbittorrent/qBittorrent/issues/19758, https://github.com/qbittorrent/qBittorrent/pull/19814)
Comment 15 chs 2024-03-10 12:47:49 UTC
Looks like https://bugreports.qt.io/browse/QTBUG-53550?