[Newbies] Libre Office and samba via gvfs...
Tofloor
poster avatar
a***[email protected]
deepin
2024-02-29 04:47
Author

Hello,

Libre Office opens files from samba share (NAS) mounted via gvfs (system filemenager) only read-only. Other programs - i.e. text editor - opens the file normally (rw).

In Beta (v. 23 of deppin) it works perfectly - it means text editor and libreoffice opens files from samba normally.

What is the difference?

Regards

Adam

Reply Favorite View the author
All Replies
a***[email protected]
deepin
2024-03-01 04:05
#1

On Deepin 20.9 the gvfs mount point is:

/run/user//gvfs/smb-share:server=,share=

But on beta - Deepin 23:

/media//smb-share:server=,share=

And the second path works fine with LibreOffice...

Both paths uses special characters like ":", "," and "="...

Adam

Reply View the author
wangr1069
deepin
2024-03-14 11:20
#2

Reason:
The gvfs method used by Deepin 20.9 to access samba share.
The cifs method used by Deepin 23 to access samba share.
When libreoffice opens a file in read-write mode, only the O_RDWR flag is passed in, but there is no O_TRUNC or O_APPEND flag. This is not supported by gvfs, but can be supported by cifs, which leads to the above phenomenon.

Possible solutions:
On Deepin 20.9, copy the target file from gvfs to local and open it with libreoffice, Or use CIFS mount to access samba share like Deepin 23.

Hope this helps you.

Reply View the author