Bug#867794: python3-pyqt5: App tray icon won't show if show() before systray is available

2017-07-11 Thread Jérôme
Thank you Dmitry for confirming and opening upstream bug in the right place. Indeed, I intend to loop using a QTimer until QSystemTrayIcon.isSystemTrayAvailable(). -- Jérôme

Bug#867794: python3-pyqt5: App tray icon won't show if show() before systray is available

2017-07-11 Thread Dmitry Shachnev
Control: reassign -1 libqt5widgets5 5.7.1+dfsg-4 Control: forwarded -1 https://bugreports.qt.io/browse/QTBUG-61898 Hi Jérôme, On Sun, Jul 09, 2017 at 10:56:05PM +0200, Jérôme wrote: > Here's a minified example to reproduce the issue : > > [...] > > Remove systray applet from panel, launch code, a

Bug#867794: python3-pyqt5: App tray icon won't show if show() before systray is available

2017-07-09 Thread Jérôme
Here's a minified example to reproduce the issue : import sys from PyQt5 import QtGui, QtWidgets app = QtWidgets.QApplication([]) app.setQuitOnLastWindowClosed(False) main_window = QtWidgets.QMainWindow() QtWidgets.QSystemTrayIcon( QtGu

Bug#867794: python3-pyqt5: App tray icon won't show if show() before systray is available

2017-07-09 Thread Jérôme
Package: python3-pyqt5 Version: 5.7+dfsg-5 Severity: normal Dear Maintainer, my app uses a QSystemTrayIcon. When run manually, it works fine. When run on startup, the icon often (if not always) does not show up, although the program is running (appears in top). It seems related to those issues: