Use PyMuPDF over executables if not explicitly set

This commit is contained in:
Bastian Germann 2019-05-02 11:19:23 +02:00
parent a3ef19dbd9
commit 2ee21a77c4

View File

@ -127,6 +127,9 @@ class PdfController(PresentationController):
self.mudrawbin = program_path
elif program_type == 'mutool':
self.mutoolbin = program_path
elif PYMUPDF_AVAILABLE:
self.also_supports = ['xps', 'oxps']
return True
else:
# Fallback to autodetection
application_path = AppLocation.get_directory(AppLocation.AppDir)
@ -157,9 +160,6 @@ class PdfController(PresentationController):
return True
elif self.gsbin:
return True
elif PYMUPDF_AVAILABLE:
self.also_supports = ['xps', 'oxps']
return True
return False
def kill(self):