diff --git a/src/back/index.ts b/src/back/index.ts index 0b10a2d..00a93df 100644 --- a/src/back/index.ts +++ b/src/back/index.ts @@ -8,6 +8,12 @@ import Updater from './updater' export const DEV = !app.isPackaged +// Enforce single instance +const isMain = app.requestSingleInstanceLock() +if (!isMain) { + app.quit() +} + // Disable gpu app.disableHardwareAcceleration() app.commandLine.appendSwitch('disable-software-rasterizer')