mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-06 02:30:47 -08:00
12 lines
334 B
TypeScript
12 lines
334 B
TypeScript
import { logger } from '@services/libs/log';
|
|
import { app } from 'electron';
|
|
|
|
const gotTheLock = app.requestSingleInstanceLock();
|
|
|
|
logger.info('App booting');
|
|
|
|
if (!gotTheLock) {
|
|
logger.info('Quitting dut to we only allow one instance to run.');
|
|
console.info('Quitting dut to we only allow one instance to run.');
|
|
app.quit();
|
|
}
|