Lars Gullik Bjønnes wrote:
We have a filesystem...
Filesystems are shared between computers...
Computer have users...
Users run LyX...
LyX loads the same file...
LyX can set a write lock on open files.
It is not a requirement, and why are you talking about synchronizing
documents? We only want to avoid having separate instances of LyX
editing the same file at the same time.
There are indeed two options:
1) Display an error message when the file is already opened by another
LyX process. It will be impossible to know which windows have the data
of the document (they all look the same independent of the process).
2) Use a single process by default so users will automatically get a new
view with the right contents.
Option 2 is definitely more user-friendly.
Joost