From 1c11021a41334779eed4e80d0d412266ecc1446c Mon Sep 17 00:00:00 2001 From: Alexander Horn Date: Mon, 14 Aug 2017 23:03:18 +0200 Subject: [PATCH] chrome-launcher: add support for finding Chromium on Linux (#2950) --- chrome-launcher/chrome-finder.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chrome-launcher/chrome-finder.ts b/chrome-launcher/chrome-finder.ts index 6504b5fa57f8..f442f3d5e41b 100644 --- a/chrome-launcher/chrome-finder.ts +++ b/chrome-launcher/chrome-finder.ts @@ -106,10 +106,12 @@ export function linux() { installations = installations.concat(findChromeExecutables(folder)); }); - // Look for google-chrome-stable & google-chrome executables by using the which command + // Look for google-chrome(-stable) & chromium(-browser) executables by using the which command const executables = [ 'google-chrome-stable', 'google-chrome', + 'chromium-browser', + 'chromium', ]; executables.forEach((executable: string) => { try { @@ -133,6 +135,8 @@ export function linux() { {regex: /chrome-wrapper$/, weight: 51}, {regex: /google-chrome-stable$/, weight: 50}, {regex: /google-chrome$/, weight: 49}, + {regex: /chromium-browser$/, weight: 48}, + {regex: /chromium$/, weight: 47}, ]; if (process.env.LIGHTHOUSE_CHROMIUM_PATH) {