From 58a8241844d6625667144b442ef95dc5b20e9e46 Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Tue, 28 Mar 2023 14:39:58 +0300 Subject: [PATCH] container: Run LibreOffice in safe mode The main use of safe mode [1] in LibreOffice is to run with a fresh user profile, in case the default one got borked somehow. This is actually not a concern of ours, since the user's profile is in the container and is not persistent. The main reason we want to preemptively run LibreOffice in safe mode is to remove hardware acceleration capabilities. Whether hardware acceleration actually works in a container is another question, but we want to be extra sure. [1]: https://help.libreoffice.org/latest/en-US/text/shared/01/profile_safe_mode.html --- container/dangerzone.py | 1 + 1 file changed, 1 insertion(+) diff --git a/container/dangerzone.py b/container/dangerzone.py index debf1d0..360552e 100644 --- a/container/dangerzone.py +++ b/container/dangerzone.py @@ -238,6 +238,7 @@ class DangerzoneConverter: args = [ "libreoffice", "--headless", + "--safe-mode", "--convert-to", "pdf", "--outdir",