diff options
-rw-r--r-- | src/index.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js index b26ef1e..d8107e8 100644 --- a/src/index.js +++ b/src/index.js @@ -117,6 +117,13 @@ if (cli.hasArgs()) { } else { app.setAsDefaultProtocolClient("ror2mm"); + const app_lock = app.requestSingleInstanceLock() + + if (!app_lock) { + // Viper is already running + app.quit(); + } + // start the window/GUI app.on("ready", () => { start(); |