diff --git a/src/convert.ts b/src/convert.ts index dfbb157..b8653a1 100644 --- a/src/convert.ts +++ b/src/convert.ts @@ -14,7 +14,7 @@ export const DEFAULT_ARGS = [ '--nologo', '--norestore', ]; -const LO_BINARY_PATH = 'libreoffice7.6'; +const LO_BINARY_PATH = process.env.LO_BINARY_PATH ?? 'libreoffice7.6'; export async function convertTo(filename: string, format: string): Promise { await cleanupTempFiles();