Open all documents in Read-Only mode by default

I’ve looked all over and and am trying to find a way to open all Documents (xlxs, docx, pptx etc) in Read-Only by default. We have workstations here that do not need to edit Documents only view them when needed.

Any feedback is welcome

Set the file attibute permissions to readonly for all the documents you don’t want changed - then no matter what applications you open the files with they should be locked and remain unchanged.

You might tweak the shell integration for LibreOffice filetypes associations. It differs depending on the OS. For example, on Windows, to open ODT in read-only by default (when double-clicking on a file in file manager), you might change default value of HKEY_CLASSES_ROOT\LibreOffice.WriterDocument.1\shell\open\command in registry from "C:\Program Files\LibreOffice\program\soffice.exe" -o "%1" to "C:\Program Files\LibreOffice\program\soffice.exe" --view "%1".

This is not a complete solution, though. E.g., opening files from LibreOffice itself (including the last files list) will not be affected by that change.