files on a network drive locked when accessing from libreoffice for mac OS X
On opening some files on a network drive (SMB) i keep getting the error message:
“Error during shared access to /Volumes/…”
All ~lock… files are deleted – to no effect.
I copied the files to new folders – no effect
If I access the file from another application it works
If I copy the file to the desktop it’s accessible
If I copy it back it’s not accessible again
Opening it on the desktop and Save as to the network also has no effect.
For Ubuntu a solution is documented to edit the start script “soffice”
in order to turn off shared file locking
by commenting out the following lines
- file locking now enabled by default
- SAL_ENABLE_FILE_LOCKING=1
- export SAL_ENABLE_FILE_LOCKING
one solution which I don’t want to try is to turn off locking for the volume while connecting
I couldn’t find any option in Libreoffice for OS X to change a similar setting as in Ubuntu
The problem is well documented in different forums and blogs
But no solution for OS X found by me.
Is there a solution for the base problem?
Can anyone advise me how to disable file locking on OS X
KR
Anton
Thank you for the reply.
It’s mounted via the smb protocol.
On the mac I did not find a etc/fstab file.
KR
Anton
but i cannot find any way to deactivate shared access on a mac
If the problem cannot be solved that would also be a solution for me if someone can help
KR
Are there such fundamental differences between the libreoffice OS Versions, that something thats configurable in ubuntu (deactivate shared access) is not configurable in OS X?
I copied from the Readme_en US the following text, so I suppose libre office supports deactivating in all OS versions.
Does anybody know where the corresponding file is located in OS X?
———————————————————————————————————
File Locking
———————————————————————————————————
File locking is enabled by default in LibreOffice. On a network that uses the Network File System protocol (NFS), the locking daemon for NFS clients must be active. To disable file locking, edit the soffice script and change the line “export SAL_ENABLE_FILE_LOCKING” to “# export SAL_ENABLE_FILE_LOCKING”. If you disable file locking, the write access of a document is not restricted to the user who first opens the document.
KR
Anton Fildan
LibreOffice.app/program/soffice
It should be in the main script.
/etc/fstab
?