Files
wisp-open/internal/ui/tray/tray_start_linux.go
T
Your Name ce49f66c89 fix: Add cross-platform handling for tray, updater, and icon generation
- Add platform notes for tray startup, shortcut saving, and Linux-only settings
- Handle stat error in processRecording (missing file)
- Select correct binary name based on OS in updater
- Increase tray icon canvas size from 64 to 128 pixels
- Update frontend dist asset hash
2026-06-09 15:14:30 -07:00

23 lines
749 B
Go

//go:build linux
// ============================================================
// LINUX-ONLY FILE — Tray startup for Linux. On Linux, Wails'
// GTK main loop is already running, so we use systray.Register
// instead of systray.Run (which would start a second gtk_main).
// The Windows equivalent is tray_start_nonlinux.go
// ============================================================
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,
)
}