fix(desktop): configure app before instance lock (#44067)

This commit is contained in:
Luke Parker
2026-08-22 16:09:13 +10:00
committed by GitHub
parent 80ef4f454f
commit 7032a096bf
+2 -1
View File
@@ -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))
}),
)