diff --git a/packages/desktop/src/main/windows/index.ts b/packages/desktop/src/main/windows/index.ts index 5d7ea2ae6e91..84ae6141af19 100644 --- a/packages/desktop/src/main/windows/index.ts +++ b/packages/desktop/src/main/windows/index.ts @@ -94,7 +94,14 @@ export function createMainWindow(id: string = randomUUID()) { wireFullscreen(win) loadWindow(win, "index.html") wireZoom(win) - win.once("ready-to-show", () => win.show()) + let revealed = false + const reveal = () => { + if (revealed || win.isDestroyed()) return + revealed = true + win.show() + } + win.once("ready-to-show", reveal) + if (process.platform === "linux") win.webContents.once("did-finish-load", reveal) return win }