Skip to content

Commit

Permalink
chrome-launcher: add support for finding Chromium on Linux (#2950)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhorn authored and brendankenny committed Aug 14, 2017
1 parent 391e204 commit 1c11021
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion chrome-launcher/chrome-finder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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) {
Expand Down

0 comments on commit 1c11021

Please sign in to comment.