From 8b4b63b245134fbab76389b7d9f84b99986b7360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=ABl?= Date: Tue, 30 Jun 2026 17:46:12 +0200 Subject: [PATCH] fix(desktop): show HealthChat brand in native About panel and menu The native About panel and macOS app menu derived their name from Electron's app.name and ignored the configured brand, so they still showed "Element". Set the About panel options from vectorConfig.brand and use the brand for the macOS app/About menu labels. --- apps/desktop/src/electron-main.ts | 8 ++++++++ apps/desktop/src/vectormenu.ts | 6 ++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/apps/desktop/src/electron-main.ts b/apps/desktop/src/electron-main.ts index 372c6fad24..e620016670 100644 --- a/apps/desktop/src/electron-main.ts +++ b/apps/desktop/src/electron-main.ts @@ -310,6 +310,14 @@ app.on("ready", async () => { return; } + // Drive the native "About" panel from the configured brand so it shows + // "HealthChat" rather than the upstream Electron/bundle default. + const brand = global.vectorConfig.brand || "Element"; + app.setAboutPanelOptions({ + applicationName: brand, + applicationVersion: app.getVersion(), + }); + if (argv["devtools"]) { try { const { installExtension, REACT_DEVELOPER_TOOLS } = await import("electron-devtools-installer"); diff --git a/apps/desktop/src/vectormenu.ts b/apps/desktop/src/vectormenu.ts index d5bab05ed5..6d264571c2 100644 --- a/apps/desktop/src/vectormenu.ts +++ b/apps/desktop/src/vectormenu.ts @@ -141,14 +141,16 @@ export function buildMenuTemplate(): Menu { // macOS has specific menu conventions... if (isMac) { + // XXX: vectorConfig won't have defaults applied to it so we need to duplicate them here + const brand = global.vectorConfig?.brand || app.name; template.unshift({ // first macOS menu is the name of the app role: "appMenu", - label: app.name, + label: brand, submenu: [ { role: "about", - label: _t("common|about") + " " + app.name, + label: _t("common|about") + " " + brand, }, { type: "separator" }, {