From a4fd5a78b4e0c034aac929c01914731f08665d97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Thu, 7 May 2026 12:59:01 +0200 Subject: [PATCH] [client/ui-wails] Set application Name to "NetBird" for Windows toasts Windows uses application.Options.Name as the toast AppUserModelID and as the registry path the Wails notifier reads/writes its CustomActivator under (HKCU\Software\Classes\AppUserModelId\). The MSI installer seeds those under "NetBird"; with the previous "netbird-ui" Name the app would have written under a different identity and the toast activator CLSID the installer pre-registers would have been orphaned. --- client/ui-wails/main.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/client/ui-wails/main.go b/client/ui-wails/main.go index e5f4d4a7a..9bc3d5692 100644 --- a/client/ui-wails/main.go +++ b/client/ui-wails/main.go @@ -67,7 +67,15 @@ func main() { var tray *Tray app := application.New(application.Options{ - Name: "netbird-ui", + // Windows uses Name as the AppUserModelID for toast notifications + // (see notifications_windows.go: cfg.Name -> wn.appName -> AppID) + // and as the registry path under HKCU\Software\Classes\AppUserModelId\. + // Must match the System.AppUserModel.ID value the MSI sets on the + // Start Menu shortcut (client/netbird.wxs) and the AppUserModelId + // key the installer pre-populates with the toast activator CLSID; + // otherwise toasts show under a different identity and the MSI's + // CustomActivator registry value is orphaned. + Name: "NetBird", Description: "NetBird desktop client", Icon: iconWindow, Assets: application.AssetOptions{