mirror of
https://git.freebsd.org/ports.git
synced 2025-05-29 01:16:28 -04:00
Build cross platform desktop apps with JavaScript, HTML, and CSS. It's easier than you think. If you can build a website, you can build a desktop app. Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. It takes care of the hard parts so you can focus on the core of your application. WWW: https://www.electronjs.org/
23 lines
1,003 B
TypeScript
23 lines
1,003 B
TypeScript
--- electron/spec/api-shell-spec.ts.orig 2024-10-09 13:53:06 UTC
|
|
+++ electron/spec/api-shell-spec.ts
|
|
@@ -26,7 +26,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;
|
|
@@ -39,6 +39,11 @@ describe('shell module', () => {
|
|
let requestReceived: Promise<any>;
|
|
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();
|