algoo / preview-generator

generates previews of files with cache management
https://pypi.org/project/preview-generator/
MIT License
229 stars 51 forks source link

How to deal with multiple instance of Libreoffice ? #77

Open inkhey opened 5 years ago

inkhey commented 5 years ago

https://github.com/algoo/preview-generator/pull/74 force libreoffice instance to be only one using lock to avoid issue. Should we preserve this behaviour ?

we can maybe fix this with different env info '-env:UserInstallation=file:///d:/tmp/p0/' (see https://ask.libreoffice.org/en/question/42975/how-can-i-run-multiple-instances-of-sofficebin-at-a-time/ ) , but not sure that a good idea to run multiple much LibreOffice at same time.

lebouquetin commented 5 years ago

The right way to manage this will be to use libreoffice as a deamon and to use the UNO Api. We did work on a POC on last PyconFR at Lilles. @inkhey you remember?