Closed pysailor closed 7 years ago
On Nixos, libreoffice (5.X) apparently creates its temp-folders not under the name 'libreoffice', but 'libreofficedev'. That means this fails: https://github.com/collective/collective.documentviewer/blob/master/collective/documentviewer/convert.py#L287 So an otherwise successful conversion gets aborted because the hard-coded libreOfficePath is wrong and the number of files is not equal.
libreOfficePath
Therefore, also check for the existence of the alternative folder and remove it if found.
Faced the same problem here. Had the same commited solution ;)
On Nixos, libreoffice (5.X) apparently creates its temp-folders not under the name 'libreoffice', but 'libreofficedev'. That means this fails: https://github.com/collective/collective.documentviewer/blob/master/collective/documentviewer/convert.py#L287 So an otherwise successful conversion gets aborted because the hard-coded
libreOfficePath
is wrong and the number of files is not equal.Therefore, also check for the existence of the alternative folder and remove it if found.