fix: consider DISPLAY only on linux (#175)

This commit is contained in:
Yury Semikhatsky 2025-04-14 19:07:39 -07:00 committed by GitHub
parent 71e51ea42a
commit de08c24b96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,7 +74,7 @@ program
}
const launchOptions: LaunchOptions = {
headless: options.headless ?? !process.env.DISPLAY,
headless: !!(options.headless ?? (os.platform() === 'linux' && !process.env.DISPLAY)),
channel,
executablePath: options.executablePath,
};