ONLYOFFICE / DesktopEditors

An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents
https://www.onlyoffice.com
Other
2.93k stars 332 forks source link

Create an empty lock file when the file is opened so that cloud drives can detect it and lock the file to the user editing it locally. #1413

Open vagner-dias opened 1 year ago

vagner-dias commented 1 year ago

This issue is unique.

Your idea.

Cloud services such as NextCloud, Google Drive, OneDrive, SeaFile, etc., have built-in mechanisms to detect "Office Lock files" (~$ Files) so that they can lock these files to the user who is editing them locally, to avoid conflicts.

The NextCloud version of OnlyOffice already works perfectly with file locking for web editing; however, the desktop version lacks this feature.

In short, the implementation would consist of creating an empty lock file (~$FileName.Extension) every time a file is opened in the desktop editor, and when the file is closed, this lock file would be deleted.

That way, these cloud drives would work better with OnlyOffice.

Regards.

LuckySpecialist commented 11 months ago

Hi @vagner-dias! Sorry for the long answer, are you talking about desktop cloud storage clients and files that are created locally?

vagner-dias commented 11 months ago

Hi @vagner-dias! Sorry for the long answer, are you talking about desktop cloud storage clients and files that are created locally?

Hi @LuckySpecialist , exactly.

LuckySpecialist commented 11 months ago

Hi @vagner-dias, this enhancement is already available as Bug 48823, I will add your appeal to it. Thanks for feedback!

vagner-dias commented 11 months ago

Thank you, @LuckySpecialist !

Rita-Bubnova commented 4 months ago

We are reopening the task. We will close the task as soon as the problem is fixed.

maxsnts commented 1 month ago

While this is probable not one of your concerns, it would be amazing if you could use/check the lock files created by LibreOffice. This way, maybe when other people is using LibreOffice, any of the Apps would create the same lock file and avoid destroying the files.

Thank you Best regards