From 7a761c24906012cd9023c52f96a731b4aef1a288 Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Sun, 3 Apr 2022 15:26:53 -0300 Subject: [PATCH] filter for paths ending in github-desktop --- app/src/main-process/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main-process/main.ts b/app/src/main-process/main.ts index a7f5613d6f3..b41b101f22d 100644 --- a/app/src/main-process/main.ts +++ b/app/src/main-process/main.ts @@ -266,7 +266,7 @@ function handlePossibleProtocolLauncherArgs(args: ReadonlyArray) { // so we should filter out the program name as well as any parameters that // look like arguments to Electron const argsWithoutParameters = args.filter( - a => a !== 'github-desktop' && !a.startsWith('--') + a => !a.endsWith('github-desktop') && !a.startsWith('--') ) if (argsWithoutParameters.length > 0) { handleAppURL(argsWithoutParameters[0])