How to disable locking in LibreOffice?
Solution 1:
To disable locking open Terminal application, then copy, paste and execute following command.
Notice: it's one long command, 12 lines, starts with "echo" and ends with "disable-file-locking.xcd".
echo '<?xml version="1.0" encoding="UTF-8"?>
<oor:data xmlns:oor="http://openoffice.org/2001/registry">
<dependency file="main"/>
<oor:component-data oor:package="org.openoffice.Office" oor:name="Common">
<node oor:name="Misc">
<prop oor:name="UseLocking">
<value>false</value>
</prop>
</node>
</oor:component-data>
</oor:data>' |
sudo tee /usr/lib/libreoffice/share/registry/disable-file-locking.xcd
To undo changes:
sudo rm /usr/lib/libreoffice/share/registry/disable-file-locking.xcd
Solution 2:
Modify ~/.config/libreoffice/4/user/registrymodifications.xcu
.
Add
<item oor:path="/org.openoffice.Office.Common/Misc"><prop oor:name="UseLocking" oor:op="fuse"><value>false</value></prop></item>
after the other <item oor:path="/org.openoffice.Office.Common/Misc">
Solution 3:
You can now change settings (even in Windows) from UI. Source
Since version 4.2, we have Expert Configuration feature allowing one to set different power-user settings from [...]
Options->LibreOffice->Advanced->Open Expert Configuration. [...]org.openoffice.Office.Common/Misc/UseLocking
setting
(controlling creation of lockfiles and using locking in general), andorg.openoffice.Office.Common/Misc/UseDocumentOOoLockFile
setting
(controlling whether the present lockfile will be considered when deciding if the file is locked by someone else).