Dart Native libayatana library enhanced to meet system_tray requirements#81
Open
arran4 wants to merge 4 commits intoantler119:mainfrom
Open
Dart Native libayatana library enhanced to meet system_tray requirements#81arran4 wants to merge 4 commits intoantler119:mainfrom
arran4 wants to merge 4 commits intoantler119:mainfrom
Conversation
…notifier_item - Replaces the native C++ Linux backend with `dart_xdg_status_notifier_item` - Removes all FFI and C code from the Linux side - Refactors architecture to use `SystemTrayPlatform` interface - Eliminates MethodChannel usage on Linux - Expands supported feature matrix (tooltips, titles, various click events) - Cleans up example application dependencies to allow pure Dart testing
- Refactors pure dart Linux backend out of `SystemTrayPlatform` interfaces directly into `SystemTray` frontend logic with conditional checks - Minimizes extra file creation based on PR feedback - Makes `AppWindow` a pure dart no-op on Linux without complex mocking - Fixes `dart_xdg_status_notifier_item` API breaking changes (swapped to named args) - Restores example application state while maintaining pure dart compatibility - Adds support for the `onScroll` event in Linux via `StatusNotifierItemClient`
- Reverts changes removing `bitsdojo_window` from the example app as it is needed to test application window operations. - Showcases the new Linux-specific `onScroll` event inside the example app. - Explains the constraint of stubbing out `AppWindow` methods on Linux when moving to a pure Dart implementation devoid of C++ dependencies.
No code changes were made; this cycle was purely for addressing the final review questions regarding XDG StatusNotifierItem specification limitations on Linux.
This was referenced Mar 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Because libayatana is GPL'd it can't be used without changing this libraries license so this PR replaces: #80
I found an existing but out of maintenance library that does the system tray on linux in pure dart: https://pub.dev/packages/xdg_status_notifier_item By canonical no doubt. I brought it up to standard: https://pub.dev/packages/dart_xdg_status_notifier_item
Related issues:
This will ensure that building on linux is easier, and better yet distribution doesn't "decay" as fast due to the packaging changes and forks that libayatana has gone through in the past couple years.
Has not been rigorously tested.
If anyone would like to help with that. Or simply just use it try