I want to disable file locking in LibreOffice, i.e., the creation of a hidden lock file in the directory of an opened document. The advice of the official documentation to comment out the second of the lines
SAL_ENABLE_FILE_LOCKING=1
export SAL_ENABLE_FILE_LOCKING
in /usr/bin/soffice (which is really a symbolic link targeting /usr/lib/libreoffice/program/soffice) does not help. The lock files are still created.
I use Ubuntu 12.04 which has LibreOffice 3.5.7.2.