On Tue, May 19, 2015 at 08:42:45PM +0200, Georg Baum wrote: > Enrico Forestieri wrote: > > > On Tue, May 19, 2015 at 11:09:26AM +0200, Jean-Marc Lasgouttes wrote: > >> Le 18/05/2015 20:15, Enrico Forestieri a écrit : > >> >>Something with less magic and more predictability? > >> > > >> >It's magic and it's very predictable. An alternative to reverting > >> >would be introducing a preference to allow storing the \origin tag > >> >in the file. Without that tag, everything would go as before. > >> > >> I'd say that a pref would be helpful, then. > > > > I would rather avoid introducing a new pref. If the concern is really > > the disclosure of a local path, it could also be avoided by encrypting > > the path using a key. Then, only lyx (and who is able to know the key > > and the used algorithm, of course) would be able to make sense of a > > seemingly random string. > > Sorry for chiming in so late, I missed the original discussion. > > I do not like it at all if software puts information about my machine in > files that are used for data exchange without my consent. If the information > is there, but obfuscated this is even worse, because then I cannot see what > information is leaked. This is IMHO not far away from telephoning home and > sending some undocumented binary data. > > I understand the use case for the origin parameter, and I think there will > be users who appreciate it, but if I don't need it (e.g. because I always > store relative file names and do only move the complete document hierarchy), > then I do not want at all that absolute paths are stored somewhere.
But lyx stores them in documents when using browseRelToParent() and browseRelToSub(). The fact that the user can change them is no escuse because it is not intuitive, as #7540 demonstrates. So, should we also ditch those two methods? > I think the LyX documentation is a good test case: It uses exclusively > relative paths, so no origin is needed. I will rarely use this feature, if ever at all. I was simply asked to solve a bug. I proposed a patch; there was a discussion lasting for a week on the bug tracker; all interested parties were in cc. Nobody objected, someone appreciated. I committed. All of a sudden, it was a bad idea. Ok, there is always something to learn but I learn fast. -- Enrico