(Ubuntu 13.04) LibreOffice ignores SAL_ENABLE_FILE_LOCKING

I’m running Ubuntu 13.04. LibreOffice ignores the SAL_ENABLE_FILE_LOCKING variable, which I edit in the /usr/lib/libreoffice/program/soffice script to disable file locking. Even if I comment or set this variable to 0, the lock file is created. Is this a bug, or I should modify some other option to disable file lock creation? Thanks!

Are you using the PPA or website verion of LO? The Ubuntu-supplied version may be different. Perhaps try running grep over /opt/libreoffice4.0/program/ to see if it the variable is set elsewhere. The gengal, spadmin, and unopkg scripts all contain the same variable. but none of those should be related.

My solution has been to edit /usr/bin/soffice and comment out the follwing lines:


My problem was a NFS server and it’s clients, when a client opened a LO file,it is locked to all others. Unfortunately it remains so even though nobody is using it.

The above fix corrected the problem for me, this may not be right for others.
I am the owner and sole user of the server and the clients.