Problem with locked .odt Files

Hello, i have a problem with locked .odt files in a bigger environment with 40 Clients. Not all files are locked, the problem appears sometimes in a few files on a day and on different clients. We have a workflow with folders f.e Folder1, Folder2 and Folder3 are the workflow folders. Client1 edit a .odt, save, exit and drop the file into Folder2. Client2 wants to edit the .odt and sometimes the File is locked and you can chose between to open write protected or normal open. If you try to open it normal you can not see the edited text from Client1. If you open it write protected you can see the editet text, but you can not edit anymore. Ok i can remove the unvisible lock file on the server, but this is not a solution for many odt files during a day. There is a solution for linux to disable the locking - comment out this line with # export SAL_ENABLE_FILE_LOCKING in soffice script. But where can i disable this in OSX?

regards Lars

You could open the documents as a template, this creates a new read/write file with a copy of the existing read only document. If you need to save changes you have to write to a new file and then resolve differences with the original.

On windows using a batch file, you can use open with and select the batch file as an easy way to open a document as a template.

"C:\Program Files\LibreOffice 5\program\soffice" -n %1

I’ve been thinking to expand this to check if a document is open, if it is then warn user and give option to open as a template. I don’t have that working so just using the above simple bat file for now.

Edit:
Did you already try the method described in the answer of this ask ubuntu post which was checked as correct answer?

OK, but the clients need to edit the original file. There are so much files and changes every day. The main problem is that Libreoffice does not close the invisible lockfile. Can not say why this appers so often. Maybe the windowsserver with acronis connect (afp) leads to this issue.

Where can i edit preferences in LibreOffice for OSX to disable the lock feature as discribed for Linux (# export SAL_ENABLE_FILE_LOCKING in soffice script)?

EDIT: Hello mark_t, now it works on OSX. I found it in the last answer there, but had to change the path to ~/Library/Application Support/LibreOffice/4/user/registrymodifications.xcu

(http://askubuntu.com/questions/553824/how-to-disable-locking-in-libreoffice#606460)

thx all