-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System tray icon missing #9518
Comments
What's your setting for Behaviour|Tray icon style, please? |
My Tray icon style is normal. |
Thanks. If icons are available, this should have something to do with the system tray protocol switch from XEmbed to DBus. Do you have the sni-qt package installed? @sledgehammer999: we can solve this issue by using the new protocol (well, it is more than 4 years old already, but Qt still uses the old one), but that requires either direct coding DBus calls or using KF5 (and I would strongly support the latter). That would also fix long broken tray notification window (#2934). I have a working implementation. Please let me know if you are interested. |
I did have sni-qt installed already.
I really hope this bug can be fixed eventually. This bug still affects me and many others. |
Could you do another test, please? Here is another script (requires PyQt) #!/usr/bin/env python3
# taken from stackexchange
import sys
from PyQt5 import QtCore, QtGui, QtWidgets
class SystemTrayIcon(QtWidgets.QSystemTrayIcon):
def __init__(self, icon, parent=None):
QtWidgets.QSystemTrayIcon.__init__(self, icon, parent)
menu = QtWidgets.QMenu(parent)
exitAction = menu.addAction("Exit")
exitAction.triggered.connect(self.exit)
self.setContextMenu(menu)
def exit(self):
QtCore.QCoreApplication.exit()
def main(iconName):
app = QtWidgets.QApplication(sys.argv)
w = QtWidgets.QWidget()
trayIcon = SystemTrayIcon(QtGui.QIcon.fromTheme(iconName), w)
trayIcon.show()
sys.exit(app.exec_())
if __name__ == '__main__':
main(sys.argv[1]) This one creates a tray entry with a given icon and a menu entry for exiting the application. Needs to be invoked with an icon name as the first argument. Please try "qbittorent", "qbittorrent-tray", and "application-exit". Thank you. |
I ran the script with |
It has to create a tray entry with a menu and the given icon. The menu should have an action to exit the app. Until activating the exit action the script should continue its execution. What do you observe in comparison with the description above? Also, try, please, one of the standard icons (like "application-exit"). |
I was wrong here. But seems like it passes image data via DBus instead of the icon name. |
I tried |
Console output? Error messages? Does the script run as I described above? |
There is no output or error messages or tray icons. I run the command, and simply nothing happens. I can tell it is "running" because when I try to run it with |
Hm, but it should not exit on itself, one has to use tray icon menu or kill it (it does not react on Ctrl+C). Is it what you see? |
It does not exist by itself, I would likely have to use the tray icon menu (if I could see the tray icon), or what ends up happening is I just kill it since CRTL+C does not work. So yeah, that is the functionality I see. |
OK, thanks. Is there a placeholder in the tray when the script is running? |
No, there are no additional icons in the tray at all. It is as if the script were not running other than the fact I cannot use Crtl+C to kill it. |
Thanks. Let me install XFCE on my machine and test. I'll come back to you with my results. |
Unfortunately, my XFCE desktop (4.12 on Gentoo) shows the tray icon. I don't know what to try now. My XFCE desktop somehow differs from yours but I have no idea how to find the different bit... |
Can you try creating a virtual machine with Ubuntu 16.04 and Xfce 4.12? That seems to be one of the more common configurations for replicating this issue. |
OK, I'll try. Installing just the xfce4 package would be enough to reproduce your configuration, or do I need anything else? |
I'm with the same problem here. My specs: The package sni-qt was not installed in my system, I installed it, reboot, but nothing happens.
I'm using the normal tray icon, but even if i change it the problem persist. |
Sorry for my late reply. I use Ubuntu 16.04 and then install xfce4 and xubuntu-desktop with |
@zywo maybe you don't have system tray? qBittorrent/src/gui/optionsdialog.cpp Lines 175 to 181 in bdc788c
|
@thalieht this one? |
Probably, but Qt detects your tray isn't available... |
I'm using Gnome on Arch Linux, and I didn't get a tray icon either until I installed the packages |
Same issue here. Details: Qt should know that my tray is there, because I have KeePassXC, Qt5 is a dep, and it is showing up in the tray. (far left icon) qBittorrent is actually running, and the tray does make a spot for it, it's just that the icon is not showing. I can right click in the spot where it is and all functionality is there. |
I'm the person who opened this issue and I am running Xfce 4.12 on Ubuntu 16.04. Here is my panel configuration: edit: I just tried adding the Indicator Plugin to my Xfce Panel 1 but it did not help. edit 2: I found a nice workaround for people who don't want to wait a couple years for this issue to be found and fixed. You can download kDocker and modify your qBittorrent launcher to launch with kdocker - simply put |
Update 2019-05-04: ==== Update: ==== Also having the issue. But I don't know if it's just in my case, that I can bring the icon back by toggle the 'show qBittorrent in the notification area' option off and on again(another example of IT rule No. 1 XD). And the icon disappeared only after every time I restart the Gnome shell(by alt+f2 r). Using Archlinux + Gnome + TopiconPlus. I might not have much more information for you. Hope you can solve it soon! |
Found the solution. I am running ~amd64 Gentoo here FWIW with just Openbox and not much else. When I was starting qbittorrent it was seding to stdout/err |
I was unable to test the This seems to be a widespread issue so I'm going to guess that unless other people confirm your solution works, it's a solution, not the solution, and this is probably a multifactor issue with many causes. I'm using |
I'm experiencing the same issue in |
The same problem here. Also Linux Mint 19.1 Cinnamon... |
Same problem. I'm using latest GNOME (based on Arch Linux). |
Same problem on Ubuntu 18.10. |
Worked for me on Manjaro. Qt5 Settings -> Icon Theme -> Yaru |
The Also keep in mind that Gnome removed tray icons (aside from the build-in ones) by default, and has nothing to do with Qt. This is easily fixed with a basic shell extension, but your GTK-based apps won't be getting tray icons either unless added back. If using Gnome, this issue has nothing specifically to do with qbittorrent, and just a matter of getting your system configured properly with how to handle Qt apps. |
What about users that experience this with XFCE? Same solution? |
Q5ct or q5cl or whatever did not solve this for me. I just ended up using KDocker as a workaround. |
@ipkpjersi
...in |
When I experimented with tray on MATE, I discovered that icon is presenting with notification area applet (even with SNI), but not with indicator applet. |
Similar issue on Pop!_OS 20.04. Icon shows in App Indicator with the .deb installation, but not when using flatpak |
Qt's SNI implementation doesn't work with flatpak |
\
Is there any way to fix that? |
Maybe by a very loud complaining in the Qt bugtracker 🙈 I've implemented a platformtheme plugin to fix this for myself some time ago:
|
Thanks to everyone who looked into this. Looks like the issue is due to improper system setup (wthhttps://github.com//issues/9518#issuecomment-500153965) or some other issue which cannot be reproduced (#9518 (comment)) - there are no issues on a vanilla install of Xubuntu 18.04 or Xubuntu 20.04, and those reports are very old. #9518 (comment) flatpak/snap/whatever is not officially supported. Report issues with them to their respective repositories. |
Specs:
Ubuntu 16.04 LTS
XFCE 4.12
qBittorrent 4.1.2
What is the problem:
System tray icon missing
What is the expected behavior:
System tray icon should be visible
Steps to reproduce:
Start qBittorrent with option enabled to show qBittorrent in notification area
Notes:
This is a continuation of #6659, it is not fixed yet.
Here are the results of the python script in the last issue:
$ python test.py qbittorrent-tray
/usr/share/icons/Mint-Y/panel/24/qbittorrent-tray.svg
$ python test.py qbittorrent-tray-dark
/usr/share/icons/hicolor/scalable/status/qbittorrent-tray-dark.svg
$ python test.py qbittorrent-tray-light
/usr/share/icons/hicolor/scalable/status/qbittorrent-tray-light.svg
The text was updated successfully, but these errors were encountered: