From bdac3e28a6a3dea31da696cd9eeb731dd5d00da2 Mon Sep 17 00:00:00 2001 From: Moritz Horstmann Date: Thu, 22 Jun 2023 16:14:18 +0200 Subject: [PATCH] fix: best-effort support for TUXEDO OS (#23813) TUXEDO OS is an Ubuntu based distribution built by the Linux computer vendor TUXEDO. --- 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 ac799f5cfa..c35db077e5 100644 --- a/packages/playwright-core/src/utils/hostPlatform.ts +++ b/packages/playwright-core/src/utils/hostPlatform.ts @@ -59,7 +59,8 @@ export const hostPlatform = ((): HostPlatform => { // Pop!_OS is ubuntu-based and has the same versions. // KDE Neon is ubuntu-based and has the same versions. - if (distroInfo?.id === 'ubuntu' || distroInfo?.id === 'pop' || distroInfo?.id === 'neon') { + // TUXEDO OS is ubuntu-based and has the same versions. + if (distroInfo?.id === 'ubuntu' || distroInfo?.id === 'pop' || distroInfo?.id === 'neon' || distroInfo?.id === 'tuxedo') { if (parseInt(distroInfo.version, 10) <= 19) return ('ubuntu18.04' + archSuffix) as HostPlatform; if (parseInt(distroInfo.version, 10) <= 21)