Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

fix desktop first-launch window delay

tianma-if11c9cfdb8218
diff --git a/apps/desktop/src/main/index.mjs b/apps/desktop/src/main/index.mjs
index 5f58ac31..b9691147 100644
--- a/apps/desktop/src/main/index.mjs
+++ b/apps/desktop/src/main/index.mjs
@@ -571,7 +571,6 @@ app.whenReady().then(async () => {
app.quit();
return;
}
- await ejectMountedMacInstallers();
if (!hasSingleInstanceLock) {
app.quit();
return;
@@ -674,6 +673,10 @@ app.whenReady().then(async () => {
});
await createWindow();
+ // Inspecting and ejecting mounted disk images invokes macOS command-line
+ // tools and may take several seconds. Keep that maintenance off the
+ // user-visible critical path so the first installed launch opens promptly.
+ await ejectMountedMacInstallers();
await confirmMacInstallation();
configureAutoUpdater();
handleOpenTarget(process.argv);