On Mac OS X, opening any file with LibreOffice causes the enclosing directory's modification date to change. This plays havoc with folders organized by date. Am I missing an option, or perhaps invisible lock files I can turn off?
Steps to reproduce:
1. Open any file with LibreOffice
2. Observe that this changes the enclosing directory's modification date to now.
The directory's date changes.
The directory's date should not change, because nothing (visible) in it has been modified.
Note: I would have tried Ask LibreOffice, but can find no way to log in without a social network membership, which I eschew. This Bugzilla membership doesn't seem to work for that.
Operating System: Mac OS X
Version: 18.104.22.168 release
It's probably caused by a lockfile. There are already several suggestions about what to do with those files, do they suit you or you have your own?
I wouldn't be surprised if it were caused by a lockfile, but I'm looking for definitive documentation on whether they exist and how to turn them off. The only reference I've found is to the script variable SAL_ENABLE_FILE_LOCKING, which I've set to 0 and commented out the export (in LibreOffice.app/Contents/MacOS/gengal) but the directory date still updates. I welcome more information here.
when opening there is an option to open in read-only mode, seems that in this way do no create the lock file.
Could you comment as a mac user? Thanks.
Yes, opening a file from the Open dialog with the Read-only box checked does not change the enclosing folder modification date, whereas unchecking the Read-only box or opening via drag-and-drop does (LibreOffice 22.214.171.124). So that's a workaround, but it's much less convenient than drag-and-drop, so I'd still like to find a way to turn off the lock file (or whatever), accepting the risk that I might overwrite a parallel file change from a different application. Thanks for your info.
(In reply to comment #5)
> I'd still like to find a way to turn off the lock file (or whatever),
> accepting the risk that I might overwrite a parallel file change from a
> different application.
This sounds like an enhancement request.
I am having the same problem on Ubuntu 14.04.
I have directory Temp.
In directory Temp is a file f1.odt.
If I open f1.odt without actually modifying it using LibreOffice, the time stamp of the f1.odt stays same as it should.
But the time stamp of the Temp directory changes.
Is this normal behavior?
Not advised, but already provided.
Tools -> Options -> Advanced: Expert Configuration
Search for "UseLocking" which will expose the
/org.openoffice.Office.Common/Misc "UseLocking" stanza, default value is "true"
Edit -> set "false" and OK out.
That edit will record an entry per-user into their profile "registrymodifications.xcu" configuration file.
Can revert from Expert Configuration or by editing the registrymodifications.xcu file directly. Once set remains available in registry to manually toggle between true|false.
This suppresses creation of the lock file in the folder where the document resides. Opening document via dialog in read-only mode also does not create the lock file.
*** Bug 95965 has been marked as a duplicate of this bug. ***
Thanks to V Stuart Foote.
Indeed the setting "UseLocking" to false fixes it nicely.
While this works reliably, YMMV. It was implemented for performing unit testing during development in 2012. Work last year on Expert Configuration exposed it conveniently as noted comment 8.
Commit on 2012-01-13
@Markus, how "dangerous" is it for folks to work without lockfile, and is this a "feature" we should expose in the UI outside Expert Configuration?