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

systray error: unable to addOrUpdateMenuItem: Descripteur de menu non valide #78

Open
henri9813 opened this issue Jun 2, 2024 · 3 comments

Comments

@henri9813
Copy link

henri9813 commented Jun 2, 2024

Hello,

My app ( located here: https://github.com/henri9813/iPingTray ).

Cannot work on Windows,

here is my main.go file: https://github.com/henri9813/iPingTray/blob/main/main.go

Here is the issue on my side: henri9813/iPingTray#2

Do you have an idea why it doesn't work ?

I try to run the app on a Windows 11.

Is it related to getlantern#184 ?

@andydotxyz
Copy link
Member

Probably, the fork mostly just replaces the Linux code.
You will need to have the systray initialised (i.e. by setting the icon or title) before you manipulate the menu items.

@henri9813
Copy link
Author

Setting Title is not enough on windows, you need to configure title and icon :)

Now, I have a working release of my project :) https://github.com/henri9813/iPingTray

@andydotxyz
Copy link
Member

You should always set an Icon for setup - some platforms do not support the title display.

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

No branches or pull requests

2 participants