We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
fyne-io
andydotxyz
toaster
Jacalz
changkun
Learn more about funding links in repositories.
Report abuse
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 apps on macOS can only be terminated by clicking on the systray Quit button.
This even interupts restart and shutdown of the OS (see screenshot).
Try to quit the attached program by either clicking Quit in the dock or using the "Restart..." or "Shut Down..." function of macOS. Neither will work.
package main import ( "fyne.io/fyne/v2" "fyne.io/fyne/v2/app" "fyne.io/fyne/v2/driver/desktop" "fyne.io/fyne/v2/widget" ) func main() { a := app.New() w := a.NewWindow("SysTray") w.SetContent(widget.NewLabel("Fyne System Tray")) w.Hide() if desk, ok := a.(desktop.App); ok { m := fyne.NewMenu("MyApp", fyne.NewMenuItem("Show", func() { w.Show() })) desk.SetSystemTrayMenu(m) } w.SetCloseIntercept(func() { w.Hide() }) a.Run() }
2.2.4
1.18.4
macOS
13.0.1
Tried with different (older) macOS versions. Same result.
The text was updated successfully, but these errors were encountered:
I have finally tracked this down...
GLFW terminates an app by closing all the windows. And we have told an app with systray to not close when the windows are shut.
Not yet sure how to resolve this, probably some more complex fix to GLFW required...
Sorry, something went wrong.
Fixed on develop
develop
No branches or pull requests
Checklist
Describe the bug
Systray apps on macOS can only be terminated by clicking on the systray Quit button.
This even interupts restart and shutdown of the OS (see screenshot).
How to reproduce
Try to quit the attached program by either clicking Quit in the dock or using the "Restart..." or "Shut Down..." function of macOS.
Neither will work.
Screenshots
Example code
Fyne version
2.2.4
Go compiler version
1.18.4
Operating system
macOS
Operating system version
13.0.1
Additional Information
Tried with different (older) macOS versions. Same result.
The text was updated successfully, but these errors were encountered: