dangerzone/dangerzone
Alex Pyrgiotis f75d471ec8
Fix OCR bug in Qubes Fedora 38 templates
Provide a fix for an OCR bug that affected Fedora 38 templates of Qubes
OS. In that specific configuration, the PyMuPDF version accepts the
Tesseract data directory only from the `TESSDATA_PREFIX` environment
variable. Our mistake was that we were setting this environment variable
in a dev script, instead of setting it for all configurations.

In this commit, we set an attribute in the fitz.fitz module, so that
both dev scripts and end-user installations can work. This is hacky, but
it targets an old PyMuPDF release after all, so we don't expect things
to break in the long run.

Fixes #737
2024-03-04 16:53:04 +02:00
..
conversion Fix OCR bug in Qubes Fedora 38 templates 2024-03-04 16:53:04 +02:00
gui Properly add new file extensions 2024-02-20 16:02:38 +02:00
isolation_provider Get underlying error when conversion fails 2024-02-20 15:55:45 +02:00
__init__.py Remove separate dangerzone-container entry point, make CLI work with it, and refactor container code to be more DRY 2021-08-04 16:21:00 -07:00
args.py Update typing hints for Mypy 1.1.1 2023-03-27 15:19:43 +03:00
cli.py Remove timeouts 2024-02-06 20:11:43 +00:00
document.py Sanitize filenames before logging them 2023-08-01 14:43:48 +03:00
errors.py Prevent adding duplicate documents 2022-11-30 12:49:18 +00:00
logic.py Add logic to handle documents removal 2023-07-25 15:00:12 +01:00
settings.py Get default settings without Settings instance 2023-07-24 14:22:26 +03:00
util.py Revert "Add Stopwatch implementation" 2024-02-06 19:42:42 +00:00