From e2197e5729df099c6f1da26f555d177e592d0330 Mon Sep 17 00:00:00 2001 From: Andrea Giammarchi Date: Fri, 22 Oct 2021 18:18:51 +0200 Subject: [PATCH] Improved Linux support I am on ArchLinux and none of the chrome or edge variants are available through those names, for either Chrome/ium based browser, or Edge, so I'd love to see these two extra checks in, thank you! --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 72db5b5..290b4ec 100644 --- a/index.js +++ b/index.js @@ -285,7 +285,7 @@ const apps = {}; defineLazyProperty(apps, 'chrome', () => detectPlatformBinary({ darwin: 'google chrome', win32: 'chrome', - linux: ['google-chrome', 'google-chrome-stable'] + linux: ['google-chrome', 'google-chrome-stable', 'chromium'] }, { wsl: { ia32: '/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe', @@ -304,7 +304,7 @@ defineLazyProperty(apps, 'firefox', () => detectPlatformBinary({ defineLazyProperty(apps, 'edge', () => detectPlatformBinary({ darwin: 'microsoft edge', win32: 'msedge', - linux: 'microsoft-edge' + linux: ['microsoft-edge', 'microsoft-edge-dev'] }, { wsl: '/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe' }));