https://fossforce.com/2015/12/getting-libreoffice-write-thing/
Getting LibreOffice to Do the Write Thing