How Can We Turn Off File Locking in the Mac Version?

I would like to turn off file locking, which the ReadMe file describes as on by default. I write with two computers and share files between them via DropBox. Files created with one machine cannot be opened by the other. (!@#$%$#)

The ReadMe file that comes with version 6.1.4.2 for Mac OS advises: ''To disable file locking, edit the soffice script and change the line ā€œexport SAL_ENABLE_FILE_LOCKINGā€ to ā€œ# export SAL_ENABLE_FILE_LOCKINGā€.

Sounds simple, like configuring PHP. But when I try to edit the soffice fileā€”which I found inside the LibreOffice application packageā€“>contentsā€“>MacOSā€“>soffice, I do not see ascii text as given in the ReadMe file. Instead, it looks like hex code. And indeed, the system sees the ā€˜sofficeā€™ file as a UNIX executable.

Thereā€™s gotta be a way to do this, right? Can some kind soul tell me how?

The key to this thing may be a vaguely-worded reference in the directions: 'ā€¦ edit the soffice script ā€¦ ā€™ If the ā€˜soffice scriptā€™ is not the ā€˜sofficeā€™ file, then the directions do not give the actual name of the file that needs to be edited.

I have submitted a bug report via Bugzilla in hopes that a knowledgeable eye will examine the directions.

I imagine Mac version is similar to any other version :wink: and as such, the locking would be controlled in the Expert Configuration - Iā€™d look for Locking, and disable UseLocking and/or UseDocumentSystemFileLocking as needed - isnā€™t that what you need?

Thanks for the interesting and potentially useful recommendation. I did not know about Expert Configuration (which makes Word look positively unsophisticated) so I examined it rather closely.

I did not see references to file locking, locking, or UseDocumentSystemFileLocking, but the entries are many, on many sub-levels, as you know. I will look some more. If I did miss something, maybe someone will steer me to it.

This morning I found an e-mail from Bugzilla confirming my bug report.

As you mentioned using 6.1.4.2, there must be a search box in the expert configuration dialog. There is the search term is to be entered, which was meant by ā€œIā€™d look for Lockingā€ words.

This morning I found an e-mail from Bugzilla confirming my bug report

Please mention the bug report link here.

Mikeā€”

Thanks. As it turns out, you were right. A second search in Expert Configuration turned up:

ā€”org.openoffice.Office.Common -->Miscā€“>UseLocking; UseDocumentOOoLockFile; UseDocumentSystemFileLock

Setting all three parameters to ā€˜falseā€™ lets Writer files be opened and edited on other machines.

I am happy to let my Bugzilla bug report stand, because the instructions for turning off file locking in the Readme file will not get you where you need to go.

That looks to have been BZ issue tdf#122399

I imagine the Mac version is similar to the Linux version; Linux has soffice and soffice.bin. The former is a shell script and the latter is an ELF executable. Perhaps if you set your file manager to show file extensions, or look from the command line, you may see both.

If this answer helped you, please accept it by clicking the check mark :heavy_check_mark: to the left and, karma permitting, upvote it. If this resolves your problem, close the question, that will help other people with the same question.

Thanks for the interesting suggestion. I turned off hidden files in the command line, then searched high and low, including application supportā€“>LibreOffice in the userā€™s library.

Nada.

The Mac only has ā€˜sofficeā€™ in ā€˜Applicationsā€“>LibreOfficeā€“>Contentsā€“>MacOSā€“>sofficeā€™ No ā€˜soffice.binā€™, and no text file named ā€˜sofficeā€™.

It looks like I am still confronted by a hex file that has no obvious way to identify or alter the relevant code section.

Perhaps you might revisit the question you asked on the AOO forum a year ago - there may be something there that helps.

I wish there was! On the AOO forum, RoryOF seemed to think I was describing a system problem, when I was not. None of the responses there touch on what I have described here (I just looked again). Sadly, as much as I would like to adopt Writer (LO or AOO) as my primary writing tool, default file locking prevents it.

Shouldnā€™t file locking be a checkbox or button in the Preferences Pane?

I check in every so often to see if either version of Writer has changed, but alas. AOO for Mac is still in the same version as when I posted on that forum. LO Writer is a whole version advanced, but someone still thinks that file locking should be on by default.

This is a sticky problem. AOO gives the same advice for turning off file locking as LO, and it is equally impossible for Mac users.