From 8639f494f31493127df46820e15635a48ef1c50d Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Mon, 25 Mar 2024 15:22:04 +0100 Subject: [PATCH] [PM-7048] Disable relaunch on MAS (#8466) --- apps/desktop/src/main/menu/menu.help.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/desktop/src/main/menu/menu.help.ts b/apps/desktop/src/main/menu/menu.help.ts index 46328e20891..7cc0fc26811 100644 --- a/apps/desktop/src/main/menu/menu.help.ts +++ b/apps/desktop/src/main/menu/menu.help.ts @@ -240,7 +240,11 @@ export class HelpMenu implements IMenubarMenu { await this.desktopSettingsService.setHardwareAcceleration( !this.hardwareAccelerationEnabled, ); - app.relaunch(); + // `app.relaunch` crashes the app on Mac Store builds. Disabling it for now. + // https://github.com/electron/electron/issues/41690 + if (!isMacAppStore()) { + app.relaunch(); + } app.exit(); }, },