--- electron/spec/api-shell-spec.ts.orig 2023-05-31 14:28:29 UTC +++ electron/spec/api-shell-spec.ts @@ -23,7 +23,7 @@ describe('shell module', () => { afterEach(async () => { // reset env vars to prevent side effects - if (process.platform === 'linux') { + if (process.platform === 'linux' || process.platform === 'freebsd') { process.env.DE = envVars.de; process.env.BROWSER = envVars.browser; process.env.DISPLAY = envVars.display; @@ -36,6 +36,11 @@ describe('shell module', () => { let requestReceived: Promise; if (process.platform === 'linux') { process.env.BROWSER = '/bin/true'; + process.env.DE = 'generic'; + process.env.DISPLAY = ''; + requestReceived = Promise.resolve(); + } else if (process.platform === 'freebsd') { + process.env.BROWSER = '/usr/bin/true'; process.env.DE = 'generic'; process.env.DISPLAY = ''; requestReceived = Promise.resolve();