From 00e4cc1864ac2feec22111458bf0c562712dc211 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 24 Mar 2016 23:56:32 -0700 Subject: [PATCH] Prevent --squirrel arguments from getting added as torrents --- main/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/index.js b/main/index.js index a9abf502..5cb2757b 100644 --- a/main/index.js +++ b/main/index.js @@ -40,6 +40,9 @@ if (process.platform === 'win32') { // Always quit when done app.quit() } + if (squirrelCmd === '--squirrel-firstrun') { + argv.shift() + } } // Prevent multiple instances of the app from running at the same time. New instances