-
-
Notifications
You must be signed in to change notification settings - Fork 150
replace library used to interact with tray bar #721
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
Conversation
2bbe8af
to
8326af1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested on Mac OS 12.6 and Windows 11
LGTM
bda25fa
to
64d02da
Compare
Apparently it's suggested to use CGO, even if on linux it works just fine fyne-io/systray@d16a617 |
The only downside of this PR is this https://github.com/fyne-io/systray#linuxbsd On my linux 18.04 the icon is not showing: But on newer machines should be working fine: @per1234 what do you think about this? |
64d02da
to
46c9e93
Compare
…on systems without a tray bar with this error: ``` systray error: failed to register our icon with the notifier watcher (maybe no tray is running?): The name org.kde.StatusNotifierWatcher was not provided by any .service files ```
there are no more dependencies required we can do this fyne-io/systray#24 (comment)
46c9e93
to
88dbd62
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #721 +/- ##
=======================================
Coverage 20.93% 20.93%
=======================================
Files 43 43
Lines 3153 3162 +9
=======================================
+ Hits 660 662 +2
- Misses 2397 2404 +7
Partials 96 96
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Please check if the PR fulfills these requirements
before creating one)
library change + infra enhancements
We currently use systray to interact with tray bar. On linux this requires libappindicator3 to work (v1.1.0). This library is old and deprecated. See debian release notes:
The new library is libayatana-appindicator which is supported by systray starting from version 1.2.0. But there seems to be problems with that version of the lib. See getlantern/systray#191 (comment). Using the fork https://github.com/fyne-io/systray seems to be a better alternative for various reasons:
go build
systray error: failed to register our icon with the notifier watcher (maybe no tray is running?): The name org.kde.StatusNotifierWatcher was not provided by any .service files
. So we do not need thearduino_create_agent-cli
version anymore.vs
no