You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/cmd/systray/systray.go

24 lines
478 B
Go

// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build cgo || !darwin
// systray is a minimal Tailscale systray application.
package main
import (
"flag"
"tailscale.com/client/local"
"tailscale.com/client/systray"
"tailscale.com/paths"
)
var socket = flag.String("socket", paths.DefaultTailscaledSocket(), "path to tailscaled socket")
func main() {
flag.Parse()
lc := &local.Client{Socket: *socket}
new(systray.Menu).Run(lc)
}