Skip to content

Commit e969b90

Browse files
committed
Allow custom LibreOffice binary path via environment variable
1 parent 6e23c3c commit e969b90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/convert.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const DEFAULT_ARGS = [
1414
'--nologo',
1515
'--norestore',
1616
];
17-
const LO_BINARY_PATH = 'libreoffice7.6';
17+
const LO_BINARY_PATH = process.env.LO_BINARY_PATH ?? 'libreoffice7.6';
1818

1919
export async function convertTo(filename: string, format: string): Promise<string> {
2020
await cleanupTempFiles();

0 commit comments

Comments
 (0)