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.65k stars 312 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 8 months ago

vagner-dias commented 8 months 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 7 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 7 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 7 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 7 months ago

Thank you, @LuckySpecialist !

Rita-Bubnova commented 2 weeks ago

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