mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-21 14:19:08 +02:00
Explain that macOS/Windows have a native tray and the SNI+XEmbed bridge is Linux-WM-only, so the body is intentionally empty to let main.go call it unconditionally across all build targets.
18 lines
732 B
Go
18 lines
732 B
Go
//go:build !linux || (linux && 386)
|
|
|
|
package main
|
|
|
|
// startStatusNotifierWatcher is a no-op on non-Linux platforms (and on
|
|
// linux/386, which excludes the cgo XEmbed host).
|
|
//
|
|
// The in-process org.kde.StatusNotifierWatcher + XEmbed bridge in
|
|
// tray_watcher_linux.go only exists to rescue the tray on minimal Linux WMs
|
|
// that ship no SNI watcher of their own. macOS and Windows have a native
|
|
// system tray that Wails talks to directly, so there is nothing to register
|
|
// here — the function body is intentionally empty rather than missing so
|
|
// main.go can call startStatusNotifierWatcher() unconditionally across all
|
|
// build targets.
|
|
func startStatusNotifierWatcher() {
|
|
// Intentionally empty: see the doc comment above.
|
|
}
|