From b8c45a6a8f27315b6cc65e26d455254be7d35196 Mon Sep 17 00:00:00 2001 From: Will Norris Date: Thu, 14 Aug 2025 13:46:51 -0700 Subject: [PATCH] client/systray: add CLI error output if operator is missing We already show a message in the menu itself, this just adds it to the CLI output as well. Updates #1708 Change-Id: Ia101a4a3005adb9118051b3416f5a64a4a45987d Signed-off-by: Will Norris --- client/systray/systray.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/client/systray/systray.go b/client/systray/systray.go index d5a19f91c..98c6156b8 100644 --- a/client/systray/systray.go +++ b/client/systray/systray.go @@ -160,6 +160,17 @@ func (menu *Menu) onReady() { log.Printf("starting") setAppIcon(disconnected) menu.rebuild() + + menu.mu.Lock() + if menu.readonly { + fmt.Fprintln(os.Stderr, ` +No permission to manage Tailscale. Set operator by running: + +sudo tailscale set --operator=$USER + +See https://tailscale.com/s/cli-operator for more information.`) + } + menu.mu.Unlock() } // updateState updates the Menu state from the Tailscale local client.