nextcloud / files_lock

GNU Affero General Public License v3.0
24 stars 8 forks source link

Research on automatic locking with office temp files #72

Open juliushaertl opened 2 years ago

juliushaertl commented 2 years ago

There are some interesting bits in the sea file implementation about automatically detecting lock files from msoffice/libreoffice

https://github.com/haiwen/seafile/blob/207bd49dcc26ce9600209a7c8720778dd978c5aa/daemon/repo-mgr.c#L3854-L3855

https://github.com/haiwen/seafile/blob/207bd49dcc26ce9600209a7c8720778dd978c5aa/daemon/repo-mgr.c#L3515-L3557

Might be worth to have another look if we can either detect that in the clients and lock the file automatically, or sync the lock files and handle that on the server (that however is currently on the list of ignored files in the client)

tobiasKaminsky commented 2 years ago

@juliushaertl I think we implement everything, so it can be closed?

juliushaertl commented 2 years ago

No this one is still a valid enhancement, as currently the automatic webdav locking is only performed if you use the windows webdav network drive option. With our clients you still need to manually lock before opening office/libreoffice.