Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#62325 - [qt5-base] QSystemTrayIcon doesn't show up after (re)start of traybar

Attached to Project: Arch Linux
Opened by txtsd (txtsd) - Friday, 12 April 2019, 17:24 GMT
Last edited by Antonio Rojas (arojas) - Wednesday, 24 April 2019, 06:35 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Antonio Rojas (arojas)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No


Description: When calling show() on a QSystemTrayIcon while the traybar isn't available will hide the tray icon forever. The trayicon won't come up, if there's a traybar started some time later.

Also the description of QSystemTrayIcon says, this should work:

If the system tray is unavailable when a system tray icon is constructed, but becomes available later, QSystemTrayIcon will automatically add an entry for the application in the system tray if the icon is visible.

It started to appear with Qt 5.12. This wasn't the case when using the Qt 5.11 versions.

Additional info:
* Affects v5.12.x
* Upstream:

Steps to reproduce:

Kill your traybar (however you do it).
Launch an application, which uses a QSystemTrayIcon
Start your traybar again.
The app's icon won't show up.


There is a change that is not reviewed but is confirmed working.
AladW compiled the patch and it fixes the issue:

Please merge this patch and compile so our tray icons can show up correctly.
This task depends upon

Closed by  Antonio Rojas (arojas)
Wednesday, 24 April 2019, 06:35 GMT
Reason for closing:  Fixed
Additional comments about closing:  qt5-base 5.12.3-2
Comment by Marcel Röthke (mroethke) - Monday, 15 April 2019, 09:59 GMT
The bug is arguably even worse, because tray icons vanish if the tray becomes unavailable intermittently. Which can happen during display reconfiguration.

So every time a new display is added or reconfigured one has to restart Qt5 applications.

Please consider consider to apply the fix.
Comment by txtsd (txtsd) - Saturday, 20 April 2019, 09:01 GMT
Can the priority on this be bumped way high, please? It has max priority on the Qt bug tracker.
Comment by Juraj (SGOrava) - Tuesday, 23 April 2019, 15:43 GMT
Hello, the final patch was released and the fix will be available in 5.13 and 5.12.4.