war2edit icon indicating copy to clipboard operation
war2edit copied to clipboard

Track multiple edition of a Pud

Open jeanguyomarch opened this issue 9 years ago • 3 comments

If a PUD open in one editor has been modified from outside, the editor should been about the file being modified by somone else.

jeanguyomarch avatar Oct 27 '16 06:10 jeanguyomarch

That's not easy to do. There is the Ecore_File_Monitor, but it does not differenciate the origins of the modifications. It is not a fantastic improvement, so don't make it a showstopper.

jeanguyomarch avatar Oct 31 '16 14:10 jeanguyomarch

inotify or open an exclusive lock on the file so no others can write to it

Lewiscowles1986 avatar Jan 14 '17 10:01 Lewiscowles1986

Thanks for these ideas, unfortnuately Inotify is not cross-plaform , and I want war2edit to run on macOS. I haven't considered the exclusive lock, maybe that's the way to go, but then again there is the cross-platform consideration. C11 introduced the "x" parameter to fopen(), but this would require C11 compilers and libc.

jeanguyomarch avatar Jan 14 '17 11:01 jeanguyomarch