Files
privatae-bastion/client-go/tray_other.go
T
Privatae e4c9b69b46
ci / personal-data (push) Successful in 5s
ci / test (push) Successful in 3m4s
ci / fuzz (push) Successful in 3m45s
bastion 0.53.2
2026-10-20 04:42:14 +00:00

25 lines
894 B
Go

//go:build !windows
package main
import (
"context"
"errors"
)
// No tray off Windows, and that is a decision rather than a gap — tray_windows.go
// carries the measurement behind it. Short version: fyne.io/systray needs cgo on
// darwin, which would end the single-container CGO_ENABLED=0 build for all six
// release targets; and a Linux bastion is a headless server under systemd, where
// `systemctl status` already answers liveness and there is no notification area
// to put an icon in.
//
// shutdownCh and trayStateLine are NOT here: they are ordinary logic and live in
// tray.go, untagged, so the suite actually runs them.
func startTray(context.Context) {}
// cmdTray is the person's tray beside a system service, which only Windows has.
func cmdTray() error {
return errors.New("the tray is a Windows icon; on this system `privatae-bastion ui` opens the machine's page")
}