mirror of
https://github.com/jahruz67/wisp-open.git
synced 2026-08-08 18:14:08 +00:00
16 lines
375 B
Go
16 lines
375 B
Go
//go:build linux
|
|
|
|
package tray
|
|
|
|
import "github.com/getlantern/systray"
|
|
|
|
// On Linux, Wails already runs the GTK main loop on the main thread.
|
|
// Calling systray.Run() would start a second gtk_main() and may abort.
|
|
// Instead, we only register the tray and let the existing GTK loop drive it.
|
|
func Start(app App) {
|
|
systray.Register(
|
|
func() { onReady(app) },
|
|
onExit,
|
|
)
|
|
}
|