qBittorrent icon indicating copy to clipboard operation
qBittorrent copied to clipboard

Items missing from the system tray icon right click menu

Open sha-265 opened this issue 1 year ago • 38 comments

qBittorrent & operating system versions

qBittorrent: 4.5.0 x64 Operating system: Ubuntu 22.10 Qt: 5.15.6 libtorrent-rasterbar: 2.0.8.0

What is the problem?

In the right click menu of the system tray icon in the notification area, all the items are missing except the Exit button, like this:

image

Steps to reproduce

  1. Run qBittorrent 4.5.0.
  2. Try to right click on the tray icon.
  3. See if all buttons appears or only Exit button.

Additional context

The menu should be like this: image

Possible workaround: disable the Show qBittorrent in notification area option and than re-enable it. For me all items appears, until next restart of the app.

Log(s) & preferences file(s)

No response

sha-265 avatar Nov 27 '22 22:11 sha-265

Operating system: Ubuntu 22.10 Qt: 5.15.6

This reminds me that I should change the PPAs to Qt6.

sledgehammer999 avatar Nov 28 '22 09:11 sledgehammer999

Operating system: Ubuntu 22.10 Qt: 5.15.6

This reminds me that I should change the PPAs to Qt6.

There is no such problem with Qt6 on the affected platform?

glassez avatar Nov 28 '22 09:11 glassez

There is no such problem with Qt6 on the affected platform?

I don't know. My remark is unrelated to this and I'll mark it as offtopic. That piece of info at the top of the issue caught my eye and reminded me that now the PPAs support only the 2 latest releases which also support Qt6.

sledgehammer999 avatar Nov 28 '22 09:11 sledgehammer999

Out of curiosity can you also test with official AppImage (download on mainstite)?

sledgehammer999 avatar Nov 28 '22 15:11 sledgehammer999

Out of curiosity can you also test with official AppImage (download on mainstite)?

@sledgehammer999, with the AppImage file the right click menu doesn't work at all.

sha-265 avatar Nov 28 '22 16:11 sha-265

The system tray icon right click menu is not working also in qBittorrent v4.5.0 installed from PPA on Ubuntu 22.04.

sha-265 avatar Nov 29 '22 16:11 sha-265

Which DE are you using? I have tried clean VMs of Ubuntu 22.10 (gnome), Xubuntu 22.10 (xfce) and Arch (KDE). I can't reproduce it. The tray menu works correctly with the PPA version and the AppImage on the above VMs.

Were you using another qbt version before on the same OS? Did it work correctly?

sledgehammer999 avatar Nov 29 '22 18:11 sledgehammer999

Which DE are you using?

Both versions (22.04 and 22.10) use Ubuntu's default DE - aka gnome.

Were you using another qbt version before on the same OS? Did it work correctly?

I did. I used v4.4.5 (and older) on the same OS, and it did work correctly.

sha-265 avatar Nov 29 '22 20:11 sha-265

What does the following return?

echo $QT_QPA_PLATFORMTHEME

sledgehammer999 avatar Nov 29 '22 21:11 sledgehammer999

appmenu-qt5

sha-265 avatar Nov 29 '22 22:11 sha-265

Is anyone able to do their own compilations? If so, can you try with this patch? patch->https://github.com/qbittorrent/qBittorrent/pull/18108

sledgehammer999 avatar Nov 30 '22 13:11 sledgehammer999

Is anyone able to do their own compilations? If so, can you try with this patch? patch->#18108

I don't think this patch can fix this issue. I'm thinking on possible solution... Of course it would be nice if someone affected could test it when I'm done.

glassez avatar Nov 30 '22 14:11 glassez

I have the same problem.

Rootdiv avatar Dec 01 '22 21:12 Rootdiv

In the update dated December 4, 2022, the problem persists.

qBittorrent: 4.5.0 x64 Operating system: Ubuntu Mate 22.04.1 DE: Mate 1.26.0 Qt: 5.15.3 libtorrent-rasterbar: 2.0.8.0 echo $QT_QPA_PLATFORMTHEME -> gtk2

Rootdiv avatar Dec 04 '22 12:12 Rootdiv

It looks like there is incompatibility with some DE (tray icon providers used by them). I'll try to find a workaround as soon as I get a similar environment.

glassez avatar Dec 04 '22 12:12 glassez

Which DE are you using? I have tried clean VMs of Ubuntu 22.10 (gnome), Xubuntu 22.10 (xfce) and Arch (KDE). I can't reproduce it. 

I can't reproduce it on Linux Mint (neither on Cinnamon, nor on Xfce, nor on Mate).

What does the following return?

echo $QT_QPA_PLATFORMTHEME

qt5ct

What does it return for you on mentioned above desktops?

glassez avatar Dec 04 '22 19:12 glassez

Same here on Artix 6.0.7 with xfce qBittorrent 4.5.0-1

@MrComexs Please provide complete info like the Issue author did above:

qBittorrent & operating system versions qBittorrent: 4.5.0 x64 Operating system: Ubuntu 22.10 Qt: 5.15.6 libtorrent-rasterbar: 2.0.8.0

In the update dated December 4, 2022, the problem persists. Ubuntu Mate 22.04.1 gtk2

@Rootdiv You too.

I have tried clean VMs of Ubuntu 22.10 (gnome), Xubuntu 22.10 (xfce) and Arch (KDE). I can't reproduce it. The tray menu works correctly with the PPA version and the AppImage on the above VMs.

What Qt version they are linked with?

glassez avatar Dec 04 '22 19:12 glassez

Same here on Artix 6.0.7 with xfce qBittorrent 4.5.0-1

@MrComexs Please provide complete info like the Issue author did above:

What Qt version they are linked with?

qBittorrent v4.5.0 (64-bit) Qt 6.4.1 Libtorrent 2.0.8.0 Boost 1.80.0 openSSL 3.0.7 zlib 1.2.13 libtorrent-rasterbar 1:2.0.8-2

OS: Artix 6.0.7

❯ sudo pacman -Q | grep xfce4
libxfce4ui 4.16.1-1
libxfce4util 4.16.0-1
❯ echo $QT_QPA_PLATFORMTHEME
gtk2

I not sure if this matter but here anyway

❯ sudo pacman -Q | grep nvidia
nvidia-dkms 520.56.06-2
nvidia-settings 520.56.06-1
nvidia-utils 520.56.06-2
opencl-nvidia 520.56.06-2
❯ sudo pacman -Q | grep mesa
lib32-mesa 22.2.3-1
mesa 22.3.0-1
mesa-utils 8.5.0-2
 ~              

So for me I only have the exit option in the context menu on the task bar

MrComexs avatar Dec 04 '22 20:12 MrComexs

@glassez, I'm edited comment https://github.com/qbittorrent/qBittorrent/issues/18074#issuecomment-1336397165

Rootdiv avatar Dec 04 '22 22:12 Rootdiv

This issue is reproducible when starting is slow. I successfully reproduced the problem in a clean VM using Arch Linux + MATE after adding a torrent with 43000 small files.

The version of Qt does not matter. I tried to recompile qBittorrent with Qt5 and Qt6 — the behavior is slightly different, but both are broken.

andreymal avatar Dec 04 '22 23:12 andreymal

I'm not very familiar with Linux world, but apparently there are different backends providing the tray icon functionality, and the problem is with some of them, regardless of the DE itself.

This issue is reproducible when starting is slow. I successfully reproduced the problem in a clean VM using Arch Linux + MATE after adding a torrent with 43000 small files.

Didn't test with real torrent but I added extra delay of 10 secs to emulate it. First the reduced menu is shown while torrents are being loaded (delay isn't expired) and then it is replaced with full menu as expected.

glassez avatar Dec 05 '22 08:12 glassez

@glassez it's not replaced in my clean VM

Click me

qbittorrent-tray.mp4

andreymal avatar Dec 05 '22 09:12 andreymal

@glassez it's not replaced in my clean VM

Click me qbittorrent-tray.mp4

So what kind of software is responsible for top panel of your desktop?

glassez avatar Dec 05 '22 12:12 glassez

@glassez mate-panel

andreymal avatar Dec 05 '22 12:12 andreymal

Same behavior here (missing tray menu items). Have not noticed any particular slowness or any change in behavior after some time; the menu items simply do not appear. This was an upgrade of an existing install, and so I do have several torrents in the app already.

Workaround in original post (Behavior -> "Show qBittorrent in notification area", toggle off, click "Apply", toggle it on, click "Apply") seems to work and causes the menu items to appear properly until the app is restarted.


Fedora 37, with the GNOME Shell DE under Wayland.

Version info, per the "about" dialog box: qBittorrent v4.5.0 (64-bit) Qt: 5.15.7 Libtorrent: 2.0.8.0 Boost: 1.78.0 OpenSSL: 3.0.5 zlib: 1.2.12

(I'm using the qBittorrent from the official Fedora repos, which appears to be this build, in case you need more info on what it's built/linked against.)

System tray is the standard gnome-shell-extension-appindicator for gnome shell.

$ echo $QT_QPA_PLATFORMTHEME

(i.e. the env var is not set)

a subset of output from dnf list installed:

adwaita-qt5.x86_64                                   1.4.2-1.fc37                        @fedora                   
gnome-shell.x86_64                                   43.2-1.fc37                         @updates                  
gnome-shell-extension-appindicator.noarch            46-1.fc37                           @fedora                   
gtk2.i686                                            2.24.33-10.fc37                     @fedora                   
gtk2.x86_64                                          2.24.33-10.fc37                     @fedora                   
gtk3.i686                                            3.24.35-1.fc37                      @updates                  
gtk3.x86_64                                          3.24.35-1.fc37                      @updates                  
gtk3-devel.x86_64                                    3.24.35-1.fc37                      @updates                  
gtk4.x86_64                                          4.8.2-2.fc37                        @fedora                   
libadwaita-qt5.x86_64                                1.4.2-1.fc37                        @fedora                   
qbittorrent.x86_64                                   1:4.5.0-1.fc37                      @updates                  
qgnomeplatform-qt5.x86_64                            0.9.0-5.fc37                        @updates                  
qt5-qtbase.x86_64                                    5.15.7-1.fc37                       @updates                  
qt5-qtbase-common.noarch                             5.15.7-1.fc37                       @updates                  
qt5-qtbase-gui.x86_64                                5.15.7-1.fc37                       @updates                  
qt5-qtdeclarative.x86_64                             5.15.7-1.fc37                       @updates                  
qt5-qtsvg.x86_64                                     5.15.7-1.fc37                       @updates                  
qt5-qtwayland.x86_64                                 5.15.7-1.fc37                       @updates                  
qt5-qtx11extras.x86_64                               5.15.7-1.fc37                       @updates                  
qt5-qtxmlpatterns.x86_64                             5.15.7-1.fc37                       @updates                  
qt5-srpm-macros.noarch                               5.15.7-1.fc37                       @updates                  
rb_libtorrent.x86_64                                 2.0.8-1.fc37                        @updates                  

mtigas avatar Dec 10 '22 00:12 mtigas

@MrComexs From what source did you install qBittorrent?

I've just compiled it myself and tray icon menu works as expected (but unfortunately the icon itself is missing so I have only empty clickable area).

glassez avatar Dec 10 '22 18:12 glassez

@MrComexs From what source did you install qBittorrent?

I've just compiled it myself and tray icon menu works as expected (but unfortunately the icon itself is missing so I have only empty clickable area).

Pacman.

MrComexs avatar Dec 10 '22 20:12 MrComexs

Pacman

pacman -Ss qbittorrent returns nothing for me.

glassez avatar Dec 11 '22 05:12 glassez

Pacman

pacman -Ss qbittorrent returns nothing for me.

its on the Community arch repo which sould be enabled by default

❯ sudo pacman -Sys qbittorrent
:: Synchronizing package databases...
 gremlins is up to date
 system is up to date
 world is up to date
 galaxy is up to date
 extra is up to date
 community is up to date
community/qbittorrent 4.5.0-1 [installed]
    An advanced BitTorrent client programmed in C++, based on Qt toolkit and libtorrent-rasterbar
community/qbittorrent-nox 4.5.0-1
    An advanced BitTorrent client programmed in C++, based on Qt toolkit and libtorrent-rasterbar, w/o gui

I made a VM but I wasn't able to make the same problem happen.

I got rid of the Status Tray Plugin and then re-added it to my panel and now I see all of the menu options but when I quit qbit and re launch it I get the same problem as before. I have also unchecked Show qBittorrent minimized in the Behavior Preferences and when I recheck it I see the all of the menu options but when I quit qbit it goes back to the same problem.

I might reinstall qbittorrent later today to see if that fixes it but I'm not sure since I haven't been able to find a way to replicate my problem tell me what I should do. I don't mind keeping this bug until we get it fixed?

MrComexs avatar Dec 11 '22 11:12 MrComexs

I made a VM but I wasn't able to make the same problem happen.

@MrComexs try to add some torrents, preferably with a large number of files (as I mentioned before)

andreymal avatar Dec 11 '22 15:12 andreymal