From 89a74017bbf4a57bc22becf894402bb8c2885d71 Mon Sep 17 00:00:00 2001 From: Kent Slaney Date: Fri, 1 Dec 2023 23:17:10 -0800 Subject: [PATCH] macos support for open -j --- apps/desktop/src/main/window.main.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/desktop/src/main/window.main.ts b/apps/desktop/src/main/window.main.ts index c33018b9fb..b42c75f148 100644 --- a/apps/desktop/src/main/window.main.ts +++ b/apps/desktop/src/main/window.main.ts @@ -137,6 +137,7 @@ export class WindowMain { ); this.enableAlwaysOnTop = await this.stateService.getEnableAlwaysOnTop(); + const hidden = this.session === undefined && isMac() && app.isHidden(); this.session = session.fromPartition("persist:bitwarden", { cache: false }); // Create the browser window. @@ -172,7 +173,9 @@ export class WindowMain { } // Show it later since it might need to be maximized. - this.win.show(); + if (!hidden) { + this.win.show(); + } // and load the index.html of the app. this.win.loadURL(