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