Ver código fonte

client/systray: set consistent ID for StatusNotifierItem

Fixes #18736

Change-Id: Ia101a4a3005adb9118051b3416f5a64a4a45987d
Signed-off-by: Will Norris <[email protected]>
Will Norris 3 semanas atrás
pai
commit
4044e05dfd
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      client/systray/systray.go

+ 5 - 0
client/systray/systray.go

@@ -171,6 +171,11 @@ tailscale systray
 See https://tailscale.com/kb/1597/linux-systray for more information.`)
 See https://tailscale.com/kb/1597/linux-systray for more information.`)
 	}
 	}
 	setAppIcon(disconnected)
 	setAppIcon(disconnected)
+
+	// set initial title, which is used by the systray package as the ID of the StatusNotifierItem.
+	// This value will get overwritten later as the client status changes.
+	systray.SetTitle("tailscale")
+
 	menu.rebuild()
 	menu.rebuild()
 
 
 	menu.mu.Lock()
 	menu.mu.Lock()