Documentation
¶
Overview ¶
Package tray shows a system-tray icon while the gateway runs: its presence is the status light, and its menu carries the one action a tray owes its user — quitting the daemon. Linux speaks StatusNotifierItem over the session D-Bus and Windows the win32 shell, both pure Go; macOS would need cgo and this binary stays CGO-free, so there the stub build applies and the gateway simply runs without an icon.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Quit ¶
func Quit()
Quit ends Run, which the gateway's own shutdown triggers so the icon never outlives the daemon it stands for.
func Run ¶
Run shows the icon and blocks until Quit is called. status feeds the overview the menu shows — clicking the icon opens it, and every open re-asks so the rows say what is true now, not at startup. onQuit runs when the user picks "Quit Factor". Where no session can carry an icon — a headless box, an ssh login — Run returns at once and the gateway simply runs without one.
Types ¶
This section is empty.