How do I prevent multiple instances of the same application built with electron?


I tried many things, the solution on did not work and I did not know how to use it as windows gave me many errors which I could not understand.
Any help is appreciated.

npm libraries I tried and did not work:
Electron Single Instance

Please help :frowning:

Thank you,


This is a duplicate of this very recent topic:

There are some suggestions in there on how to implement this. Please continue the conversation there.

We like to unify similar discussions under one topic so that people don’t have to read a bunch of different threads to get the whole story. Closing this topic as duplicate.

closed #3