Ask Your Question

disable file locking

asked 2019-07-30 00:36:42 +0100

carnish gravatar image
Build ID: 1:6.2.5-0ubuntu0.19.04.1

How to do this.

I have modified /usr/bin/soffice by setting locking to 0 as so (it was set to 1):

# file locking now enabled by default

However libreofice writer is still creating lock files.

I don't see anything on the man page either.

Anything else to try?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2019-07-30 01:40:03 +0100

SAL_ENABLE_FILE_LOCKING environment variable is not tested for its value: actually, it's only tested for its existence. So to actually disable it, you need to unset (or unsetenv) it ... which would simply disable using fcntl with F_SETLK command (or flock where the former isn't available). It's about file-system locks, e.g. on NFS, and is orthogonal to creation of lock files.

So - answering your question:

Anything else to try?

Just put "disable file locking" (the caption of your question) into the search box on this page, and press enter to search for this - and it will give you many results, among which are such as How Can We Turn Off File Locking in the Mac Version? and How do I prevent these lock files from being created/deleted?.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-07-30 00:36:42 +0100

Seen: 502 times

Last updated: Jul 30 '19