collective / collective.documentviewer

https://pypi.org/project/collective.documentviewer
21 stars 22 forks source link

Support libreoffice under Nixos #66

Closed pysailor closed 7 years ago

pysailor commented 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.

Therefore, also check for the existence of the alternative folder and remove it if found.

jfroche commented 7 years ago

Faced the same problem here. Had the same commited solution ;)