I have seen that there has been quite a lot of discussion about this (eg http://comments.gmane.org/gmane.editors.lyx.devel/131586), however now it doesn't work as I would need it to:
When you copy and paste an image inset from one lyx file to another, if the original image had a relative route, the following happens: On Linux: An absolute route is copied to the clipboard alongside a whole lyx document enclosing the image. When pasted, it remains an _absolute_ route when the second file is in the _same_ folder or a _child_ folder, and it is transformed in a relative route otherwise. For example copying an inset with img.pdf from /home/zah/test/file.lyx to home/zah/test2/otherfile.lyx renders the route as ../test/img.pdf. Pasting to /home/zah/test/file2.lyx renders it as /home/zah/test/img.pdf. On Windows: Some strange relative route is copied to the clipboard (Users/Zah/Dropbox becomes ../../../../../../Dropbox) which somehow works for the same file and when creating a new file (that appears by default on the same folder) but not when pasting to an _existing_ file on the same folder (then the strange relative path resolves obviously to nowhere). Therefore copying and pasting of images with relative paths between files seems broken on windows. My personal issue: I am making a program that generates lots of images and stores them in the same folder as the lyx document. I generate programatically a lyx clipboard that pastes the figures to lyx with some formatting (floats, centering and so on). The problem is that there is no way to make the relative paths work (on linux a \ gets preppended) and I need them since I am using a VCS. Is there anyway to slip a relative path into the clipboard? Thanks. Zahari.