diff --git a/electron/app/utils/libreoffice-check.ts b/electron/app/utils/libreoffice-check.ts index 418030b4..37709513 100644 --- a/electron/app/utils/libreoffice-check.ts +++ b/electron/app/utils/libreoffice-check.ts @@ -286,7 +286,7 @@ export async function isLibreOfficeInstalled(): Promise const quoted = `"${candidate}"`; const { stdout } = await execAsync(`${quoted} --version`, { timeout: 8_000, - windowsHide: process.platform === "win32", + windowsHide: (process.platform as string) === "win32", }); return { installed: true, version: stdout.trim(), path: candidate }; } catch { @@ -320,7 +320,7 @@ export async function isLibreOfficeInstalled(): Promise try { const { stdout } = await execAsync("soffice --version", { timeout: 8_000, - windowsHide: process.platform === "win32", + windowsHide: (process.platform as string) === "win32", }); // Found via PATH – record the bare command name as the path so callers // can pass it directly to subprocess invocations. @@ -426,4 +426,4 @@ export async function checkLibreOfficeBeforeWindow( // Always proceed – never block the app return true; -} +} \ No newline at end of file