Fix : try FS 2
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user