Ask Your Question
0

How to disable lock file ? [closed]

asked 2012-07-17 12:14:01 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

LibreOffice create a .~lock.MyFile.ods# file when opening MyFile.ods I've understand that this system is usefull to know who has already opened the file. On Mac, On shared folder, this is not working as expected. Some times (for many reasons), this file isn't removed when file closed. And nobody can open the file. (and because of bug specific on mac, https://bugs.freedesktop.org/show_bug.cgi?id=40907 , we can't open at all, even in read-only mode)

For all theses reasons, i wan't to disable this behaviour and go back to default OS file locking.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2015-10-31 04:28:59.613216

2 Answers

Sort by » oldest newest most voted
1

answered 2012-07-26 17:18:23 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

There (as far as I know) is no way to disable the lock-files only. I think you can only disable filelocking completely.

export SAL_ENABLE_FILE_LOCKING=0 (note that at least on linux it is enabled in libreoffice-dir/program/soffice , so when you want to disable it you have to modify that file)

edit flag offensive delete link more

Comments

Could someone be so kind as to describe how this particular fix is implemented? Assuming "export SAL_ENABLE_FILE_LOCKING=0" goes into a config file, where is that file located on a Windows 7 installation?

CSmith gravatar imageCSmith ( 2014-12-07 20:02:13 +0200 )edit
0

answered 2013-05-06 07:01:26 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Opening any file with LibreOffice causes the enclosing directory's modification date to change. I want to disable it too. How plz?

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2012-07-17 12:14:01 +0200

Seen: 7,325 times

Last updated: May 06 '13