[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\<Name>). 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.
This commit is contained in:
Zoltán Papp
2026-05-07 12:59:01 +02:00
parent 5b70989e3e
commit a4fd5a78b4

View File

@@ -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{