Bug 60290 - FILEOPEN: Opening a file changes the directory's modification date
Summary: FILEOPEN: Opening a file changes the directory's modification date
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version: 3.6.5.2 release
Hardware: Other Mac OS X (All)
: medium enhancement
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-04 18:37 UTC by Rhodes
Modified: 2013-12-18 13:05 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Rhodes 2013-02-04 18:37:15 UTC
Problem description: 
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.

Current behavior:
The directory's date changes.

Expected behavior:
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: 3.6.5.2 release
Comment 1 Urmas 2013-02-05 13:38:04 UTC
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?
Comment 2 Rhodes 2013-02-05 18:30:06 UTC
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.
Comment 3 m.a.riosv 2013-02-06 00:12:32 UTC
Hi Rhodes,

when opening there is an option to open in read-only mode, seems that in this way do no create the lock file.
Comment 4 bfoman 2013-06-21 12:28:12 UTC
@Roman Eisele
Could you comment as a mac user? Thanks.
Comment 5 Rhodes 2013-06-21 16:35:24 UTC
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 4.0.2.2). 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.
Comment 6 Robinson Tryon (qubit) 2013-12-18 13:05:13 UTC
(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.

Status: NEW
Severity: Enhancement


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.