I do not know if this is possible but I might as well give it a chance and ask. I\'m doing an Electron app and I\'d like to know if it is possible to have no more than a single
In Case you need the code.
let mainWindow = null;
//to make singleton instance
const isSecondInstance = app.makeSingleInstance((commandLine, workingDirectory) => {
    // Someone tried to run a second instance, we should focus our window.
    if (mainWindow) {
        if (mainWindow.isMinimized()) mainWindow.restore()
        mainWindow.focus()
    }
})
if (isSecondInstance) {
    app.quit()
}