From 4feb7c9e3b278c830056f84f1f548f760f41bef7 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Wed, 15 Feb 2023 09:13:14 -0800 Subject: [PATCH] fix: best-effort support for KDE Neon (#20920) This is a yet-another linux distribution based on Ubuntu. Fixes #20838 --- packages/playwright-core/src/utils/hostPlatform.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/playwright-core/src/utils/hostPlatform.ts b/packages/playwright-core/src/utils/hostPlatform.ts index b46c447e8f..2bdb606c08 100644 --- a/packages/playwright-core/src/utils/hostPlatform.ts +++ b/packages/playwright-core/src/utils/hostPlatform.ts @@ -58,7 +58,8 @@ export const hostPlatform = ((): HostPlatform => { const distroInfo = getLinuxDistributionInfoSync(); // Pop!_OS is ubuntu-based and has the same versions. - if (distroInfo?.id === 'ubuntu' || distroInfo?.id === 'pop') { + // KDE Neon is ubuntu-based and has the same versions. + if (distroInfo?.id === 'ubuntu' || distroInfo?.id === 'pop' || distroInfo?.id === 'neon') { if (parseInt(distroInfo.version, 10) <= 19) return ('ubuntu18.04' + archSuffix) as HostPlatform; if (parseInt(distroInfo.version, 10) <= 21)