run maximal one instance

This commit is contained in:
cupcakearmy 2021-04-07 10:25:31 +02:00
parent 30319197c6
commit eeae431e79
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9

View File

@ -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')