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

System tray monitoring #5261

Closed
2 tasks done
jerryan1 opened this issue Nov 13, 2024 · 6 comments
Closed
2 tasks done

System tray monitoring #5261

jerryan1 opened this issue Nov 13, 2024 · 6 comments

Comments

@jerryan1
Copy link

Checklist

  • I have searched the issue tracker for open issues that relate to the same feature, before opening a new one.
  • This issue only relates to a single feature. I will open new issues for any other features.

Is your feature request related to a problem?

If I want to listen for left click, right click, and double-click mouse events on the system tray, how do I need to implement it

Is it possible to construct a solution with the existing API?

No response

Describe the solution you'd like to see.

I want to implement a double-click system tray with a mouse, and then open a browser operation, so I need a tray mouse to listen for events.

@andydotxyz
Copy link
Member

Many operating systems do not support double tap operations on the system tray so the Fyne library does not include that.

You may have more luck with the underlying system tray APIs systray

@jerryan1
Copy link
Author

Many operating systems do not support double tap operations on the system tray so the Fyne library does not include that.

You may have more luck with the underlying system tray APIs systray

I understand the reason you mentioned, but I think we should learn more about QT and go beyond it

@andydotxyz
Copy link
Member

I'm happy to learn from toolkits and to exceed what has been done before, absolutely.
But we need to think about the user first, and how can we make a consistent experience across platforms.

@andydotxyz
Copy link
Member

You may want to also check out fyne-io/systray#84 (comment)

@jerryan1
Copy link
Author

I'm happy to learn from toolkits and to exceed what has been done before, absolutely. But we need to think about the user first, and how can we make a consistent experience across platforms.

I'm glad to communicate with you. I believe that maintaining cross platform consistency should not sacrifice some of the features on the original operating system, which makes people feel unhappy when using it. We cannot consider this issue from the perspective of developers, because real software users do not consider cross platform things. Users only want to use it comfortably.

@andydotxyz
Copy link
Member

I do not disagree with your point, but consider this scenario:

a) a menu is required to manage a sys tray app
b) the developer decided to make left click "show window" and right click "show menu"
c) the OS running does not support the right click option.

In this case the app becomes unusable.
This is what we, as responsible toolkit API creators, must guard against.

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