Fix : try FS 2
All checks were successful
release / build (push) Successful in 22s
release / verify-windows (push) Successful in 1m15s

This commit is contained in:
jeanotx32
2026-08-11 23:47:53 +02:00
parent f1a2066d56
commit 936c598013
6 changed files with 148 additions and 16 deletions

View File

@@ -1,6 +1,7 @@
import { execFile, spawn } from 'node:child_process';
import { promisify } from 'node:util';
import type { AgentEvent, BrowserSettings } from '@stream-control/shared';
import { x11Env } from './x11.ts';
const run = promisify(execFile);
@@ -47,7 +48,7 @@ export async function openUrl(
const child = spawn(settings.command, args, {
detached: true,
stdio: 'ignore',
env: { ...process.env, DISPLAY: process.env.DISPLAY ?? ':0' },
env: x11Env(),
});
return new Promise((resolve, reject) => {
@@ -81,7 +82,7 @@ export async function closeWindow(
throw new Error(`Fermeture de fenêtre non gérée sur ${process.platform}`);
}
const env = { ...process.env, DISPLAY: process.env.DISPLAY ?? ':0' };
const env = x11Env();
let ids: string[] = [];
try {