Open only one screen electron

I need to allow only one electron application to open, how do I do this? Blocking a new opening if you already have an electron process open

For that, you want app.requestSingleInstanceLock()

1 Like

thank you, it works for me