Skip to content
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

[Bug]: Unable to create status tray icon on Windows 10 #41773

Closed
3 tasks done
felipecrs opened this issue Apr 4, 2024 · 2 comments
Closed
3 tasks done

[Bug]: Unable to create status tray icon on Windows 10 #41773

felipecrs opened this issue Apr 4, 2024 · 2 comments
Labels

Comments

@felipecrs
Copy link

Preflight Checklist

Electron Version

29.1.6

What operating system are you using?

Windows

Operating System Version

Windows 10 Version 22H2

What arch are you using?

x64

Last Known Working Electron version

26

Expected Behavior

The tray icon to be created normally when a uuid is used, as it used to be in Electron 26.

Actual Behavior

Tray icon only gets created when the application is first installed. Try installing/updating the application with the same tray icon uuid and tray icon will no longer be created.

Testcase Gist URL

No response

Additional Information

Replaying what I wrote in #41721:

I know this issue is almost 10 years old, but I am facing this exact same problem after upgrading my application from Electron from 26 to 28.

[13988:0201/145554.280:WARNING:notify_icon.cc(62)] Unable to create status tray icon.
[13988:0201/145554.289:WARNING:notify_icon.cc(143)] Error setting status tray icon image
[13988:0201/145554.296:WARNING:notify_icon.cc(159)] Unable to set tooltip for status tray icon

And, as suggested by @anaisbetts, removing GUID from the tray icon indeed brings the tray icon back.

Note however I can only reproduce this bug in Windows 10, not Windows 11.

Originally posted by @felipecrs in #2468 (comment)

@codebytere
Copy link
Member

@felipecrs unfortunately there's not much we can do about this at this juncture - see #21891 which brought it back for requisite caveats to using the GUID.

@codebytere codebytere closed this as not planned Won't fix, can't repro, duplicate, stale Apr 4, 2024
@felipecrs
Copy link
Author

@codebytere that PR is from 2020. I believe it was merged way before Electron 26, and this is not an issue with Electron 26.

I have a reproducible environment, where if I downgrade Electron to 26, the issue occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants