2009/10/24 Thorsten Wilms <t_w_@...123...>:
But how would it work? How do we find a file, if we don't know its path?
Each file would have to have a system-wide unique ID, independent of path and name.
Neither Linux nor Windows provide such functionality. I don't know how to implement it in userspace in a way that would not hog down the system.
Or you would have to keep track of where you have links to files to trigger updates whenever a file is renamed/moved.
Even on Linux, inotify does not provide information where a file is moved, only that it is moved somewhere. Detecting where a file is moved would require watching every directory on the entire filesystem (see http://www.linuxjournal.com/article/8478). This is usually impossible, because there is a limit on the number of watches you can set (usually 8192), and you have to set one watch per directory (inotify watches are not recursive). Even if we didn't hit the limit, it would work only when Inkscape is running, and would not prevent breaking documents when sending them to someone else.
Regards, Krzysztof