From 7032a096bf6a004b28aeb278098c0e20beb403a6 Mon Sep 17 00:00:00 2001 From: Luke Parker <10430890+Hona@users.noreply.github.com> Date: Sat, 22 Aug 2026 16:09:13 +1000 Subject: [PATCH] fix(desktop): configure app before instance lock (#44067) --- packages/desktop/src/main/lifecycle/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/desktop/src/main/lifecycle/index.ts b/packages/desktop/src/main/lifecycle/index.ts index 68624d2ed38..ac9f6373c33 100644 --- a/packages/desktop/src/main/lifecycle/index.ts +++ b/packages/desktop/src/main/lifecycle/index.ts @@ -147,8 +147,9 @@ const platform = Layer.merge(DesktopLogging.layer, Shutdown.layer) export const layer = Layer.unwrap( Effect.gen(function* () { - if (!acquireApplicationLock()) return yield* Effect.interrupt + // Electron scopes the single-instance lock to userData. yield* configureApplication() + if (!acquireApplicationLock()) return yield* Effect.interrupt return runtime.pipe(Layer.provideMerge(platform)) }), )