Systray disappears in Windows 7/10 after explorer crash
description
Starting with Windows 7 there are several options for handling system tray icons at the OS level:
- "Hide icon and notifications"
- "Only show notifications"
- "Show icon and notifications"
The first one is the default. I have manually set the option for the application to "Show icon and notifications". When the windows explorer crashes, the icon disappears from the tray. When I check the tray options, there are two entries for the application.
- Without icon image and the option "Show icon and notifications"
- With the current tray icon of the application and the option "Hide icon and notifications"
The problem with the disappearing icon was fixed in https://bugzilla.gnome.org/show_bug.cgi?id=609622 with the commit 9452b271
If the explorer crashes, the application has to re-add the tray icon. gtk re-adds the icon, but it looks like it doesn't apply the fix in this case.
compare line 696 (readd) and 916 (add) in https://gitlab.gnome.org/GNOME/gtk/blob/9452b271a08d478b9d2658745111988b32ca598b/gtk/gtkstatusicon.c in line 907 is the workaround.
Steps to reproduce
- start program with tray icon
- kill explorer process and restart explorer.exe
- tray icon will be hidden
Current behavior
tray icon is hidden
Expected outcome
tray icon shoult not be hidden
Version information
pyGtk 3.12 under windows 7/10