On Apr 13, 2007, at 1:30 PM, Florian Ludwig wrote:
Am Freitag, den 13.04.2007, 10:01 -0700 schrieb Bryce Harrington:
On Fri, Apr 13, 2007 at 12:56:01PM +0200, Florian Ludwig wrote:
I would also prefer if the functionality of using external editors would improve. For example on linux use inotify to get changes of linked images and reload them.
This sounds interesting - can you explain in more detail how we could use inotify in this manner?
Hm,
Inotify is a system provided by the kernel (imo 2.6 only) You can say "notify my if file X changed" (and a lot more things are possible, but not interesting in here). So if you open an svg with linked images. Inkscape sets a callback function that gets called by inotify if one of the linked raster images gets changed (though an external program). This function reloads the images from the harddisk and redraw the scene.
It is interesting, but there are certain issues with inotify. On the other hand, by hooking the callbacks on windows/apps coming forward we could achieve the same net effect by manually checking the "assets" when our app regains attention. Plus that ends up cross- platform.