From 2b71e615a8157cf3e8a71c56fd3a3626b70a7206 Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Mon, 20 Jan 2025 12:23:56 +0200 Subject: [PATCH] FIXUP: Add indication of faulty file command --- dangerzone/conversion/doc_to_pixels.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dangerzone/conversion/doc_to_pixels.py b/dangerzone/conversion/doc_to_pixels.py index a7a7776..3a07377 100644 --- a/dangerzone/conversion/doc_to_pixels.py +++ b/dangerzone/conversion/doc_to_pixels.py @@ -129,7 +129,9 @@ class DocumentToPixels(DangerzoneConverter): # At least .odt, .docx, .odg, .odp, .ods, and .pptx "application/zip": { "type": "libreoffice", - # NOTE: Older `file` command cannot detect hwpx files properly. + # NOTE: `file` command < 5.45 cannot detect hwpx files properly, so we + # enable the extension in any case. See also: + # https://github.com/freedomofpress/dangerzone/pull/460#issuecomment-1654166465 "libreoffice_ext": "h2orestart.oxt", }, # At least .doc, .docx, .odg, .odp, .odt, .pdf, .ppt, .pptx, .xls, and .xlsx