mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 06:05:24 +00:00
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:
1 file changed
+3
-1
+3
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user