
This sleep should be apply only when office is started using a LibreOfficePortable executable (not a regular office installation). Adding a 1 second sleep right before this line seems to do the trick, but I didn't test it a lot. A quick solution would be to check if there is a LibreOfficePortable.exe in the specified office home path when we search for an office process and return it if there is one.īut then the LibreOfficePortable executable is responsible to start the real office process, and this means that we must wait a while before trying to retrieve the office process PID after the LibreOfficePortable process is started. I did some tests today in order to understand how the wrapper works. So it needs to close a different process than the one it opened, which is either the soffice.exe or the soffice.bin (the soffice.bin seems to work better, but we did not test that extensively yet).Įdit: THIS IS NOT REQUIRED, DO NOT INCLUDE INTO DOCUMENTATION.


Therefore I took your source and started to modify it for the support. Now I realized that LibreOffice Portable works a little differently. We recently switched to LibreOffice Portable to easily distribute LibreOffice with our software.
