Trayicon cannot work after Explorer crashes #19349
Unanswered
lwz-sabrina
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When launching an Avalonia application via a Windows Service (configured to start automatically on boot), the system tray icon fails to initialize. However, manually restarting the service after Windows login successfully loads the tray icon.
#18493 (comment)
The issue occurs because the service runs under the SYSTEM account. Windows cannot send the "TaskbarCreated" message to windows owned by the SYSTEM context. This requires explicitly allowing message reception using ChangeWindowMessageFilter.


Modify the construction of TrayIconImpl like this
Beta Was this translation helpful? Give feedback.
All reactions