client/systray: move cmd/systray to client/systray

Updates #1708

Change-Id: Ia101a4a3005adb9118051b3416f5a64a4a45987d
Signed-off-by: Will Norris <will@tailscale.com>
This commit is contained in:
Will Norris 2025-01-06 16:02:53 -08:00 committed by Will Norris
parent 041622c92f
commit 82e99fcf84
2 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@
//go:build cgo || !darwin
package main
package systray
import (
"bytes"

View File

@ -3,8 +3,8 @@
//go:build cgo || !darwin
// The systray command is a minimal Tailscale systray application for Linux.
package main
// Package systray provides a minimal Tailscale systray application.
package systray
import (
"context"
@ -44,8 +44,8 @@ var (
hideMullvadCities bool
)
func main() {
menu := new(Menu)
// Run starts the systray menu and blocks until the menu exits.
func (menu *Menu) Run() {
menu.updateState()
// exit cleanly on SIGINT and SIGTERM