fix(macos): skip single-instance lock in Mac App Store builds (#1454)

fix(macos): skip single-instance lock in Mac App Store builds
This commit is contained in:
Koi authored and GitHub committed 2026-09-20 17:58:20 -05:00
1 parent 961d18455b
commit d603d560c3
1 file changed
+3 -1
+3 -1
View File
@@ -1227,7 +1227,9 @@ function stopBackendServer() {
});
}
const gotTheLock = app.requestSingleInstanceLock();
// App Sandbox denies the singleton socket bind, which reads as a held lock and
// quits the app on every launch. macOS reactivates bundled apps anyway.
const gotTheLock = process.mas || app.requestSingleInstanceLock();
if (!gotTheLock) {
console.log("Another instance is already running, quitting...");
app.quit();