Bug 103176 - .~lock File should have another name
Summary: .~lock File should have another name
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Extensions (show other bugs)
Version:
(earliest affected)
5.2.2.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-13 06:43 UTC by Al.
Modified: 2016-10-13 09:05 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Al. 2016-10-13 06:43:16 UTC
Description:
In the Windows Explorer the .~lock file is always the first in the list (assuming you sort by name what might be most common), so all other files are shifted when it is created or removed. So the risk of opening the wrong file immediately after closing e.g. a writer document is big (especially when you are working very fast).

Steps to Reproduce:
1. open / close a document
2.
3.

Actual Results:  
(the best is to work with two screens, one with the LO document, the other with the Windows Explorer)close the document (the .~lock file still exists for a short time), position the mouse over the new file to open in explorer, but in the meantime the .~lock file is removed, all items in the explorer list are shifted one up and....you click (and open) the wrong file.


Expected Results:
If the lock file had another name so that it is sorted at the end of the list, this problem would be solved.


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.14942
Comment 1 How can I remove my account? 2016-10-13 08:07:04 UTC
Perhaps we should mark the file as hidden in Explorer.
Comment 2 How can I remove my account? 2016-10-13 08:15:37 UTC
At least for me in Windows 10, if I have an Explorer window showing my Documents folder, and I then in LO open a document from there, the lock file when it appears, goes *last* in the list of files, even if I have them sorted by name. (If I click on the "Name" column header twice, to re-sort, first into descending and then again into ascending order, the lock file does move to where it should be in the order.)

So it seems that Windows itself takes care of the problem in its current version. Thus at least changing the name of the lock file is probably not worth it at this stage. (But I still think we should ponder making the lock file not show up at all. I would hope there must be some easy way to do that in the Win32 API.)
Comment 3 Buovjaga 2016-10-13 09:01:21 UTC
(In reply to Tor Lillqvist from comment #1)
> Perhaps we should mark the file as hidden in Explorer.

They are hidden files already :)
Comment 4 How can I remove my account? 2016-10-13 09:04:58 UTC
Ah! I must have turned on "show hidden files" myself in Explorer;) Oh well, WONTFIX then?
Comment 5 Buovjaga 2016-10-13 09:05:24 UTC
Yeah, let's close.