mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-08 01:39:55 +00:00
[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:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user