On Fri, Dec 11, 2015 at 06:34:33PM -0500, Richard Heck wrote:

> On 12/11/2015 04:02 PM, Kornel Benko wrote:
> > Citing myself:
> >> I edited now Math.lyx, and not only \origin variable changed, but also some
> >> graphic insets became absolute path. I had to edit with an editor again.
> >> This happens with lyx from build-dir and also with installed lyx.
> > I found the reason. I have a symbolic link to the sources, which I use also 
> > to compile. Lyx does not recognize that the abs path to sources is 
> > identical with compiled source path.
> 
> I also have a symlink so that is probably why I see the same bug. I
> guess we need to use readLink here, somehow.
> 
> As I recall, Enrico always knows how to fix this kind of thing.

We have

/// \return true if lhs and rhs represent the same file. E.g.,
/// they might be hardlinks of one another.
bool equivalent(FileName const & lhs, FileName const & rhs);

for this kind of problems. Sorry, but I will not be able to have a
look at it for the next weeks.

-- 
Enrico

Reply via email to