My use case is that I have a number of LibreOffice files on a NAS drive; however when I try to edit these files I cannot save them afterwards unless I edit file /usr/bin/soffice, before opening the file, and comment out lines:
SAL_ENABLE_FILE_LOCKING=1 export SAL_ENABLE_FILE_LOCKING
This change persists OK until LibreOffice updates and insists on undoing my edit and I have to re-edit the soffice file and comment out the lines again. This is very frustrating.
Operating System: Ubuntu 20.04.1 LibreOffice Version: 126.96.36.199 thru 188.8.131.52 File type: ODS
Anyone able to help me with this?
if I go to Tools → Options → LibreOffice → Advanced → Button: Open Expert Configuration → Search: UseLocking and set org.openoffice.Office.Common | Misc | UseLocking to false this does not fix my problem and my system is running in this configuration
A full de-installation and fresh installation of LibreOffice does not fix the issue.
Running in Safe Mode does not fix the issue.
When I attempt to save the file a temporary file is created with permissions -rw------ when this file disappears I get a dialog telling me Write Error. The file could not be written.
If i create a file on the NAS using Nautilus (Files) the file has permissions. -rw-rw-rw-; the file I am trying to edit also has permissions -rw-rw-rw-.
I have set UMASK to 0 on the NAS. I did this by editing the file /etc/profile on the NAS and adding the line umask 0. This did not change the behaviour of LibreOffice (in particular the temporary file referred to above still has permissions -rw-------.
No .lock files exist; nor are they created when opening or attempting to save the file I expect this is because UseLocking is disabled in the Expert Configuration.
Everything works as expected when the ods file is stored on PC local hard drive; the issue is specific to the NAS.
The NAS is running Ubuntu Server 18.04.5 but I had the same issue using OpenMediaVault.
UPDATE: After updating to 184.108.40.206 my workaround (edit file /usr/bin/soffice) no longer works. I can now only open files stored on my NAS drive and cannot in any circumstance that I can find save them. This includes saving a brand new file to my NAS. It seems no one here has any clues.