Am 23.02.2020 um 00:27 schrieb Enrico Forestieri <for...@lyx.org>: > > On Thu, Feb 20, 2020 at 08:24:41AM +0100, Enrico Forestieri wrote: >> On Wed, Feb 19, 2020 at 10:33:45PM +0100, Stephan Witt wrote: >>> >>> What I wonder: there are the Qt elements used. Why don’t we rely >>> on the services of QFileInfo class? E.g. canonicalFilePath() and >>> friends? Are there historical reasons only? >> >> Yes, at the time it was not possible using Qt in src/support. > > Hmmm. That does not seem to be the only reason. I now checked > QFileInfo::canonicalFilePath() and it does not work on Windows. > I created a junction but it is not resolved.
That’s a strong argument to not rely on Qt completely. IMO, the documentation of it promise to do it better. https://doc.qt.io/qt-5/qfileinfo.html#canonicalFilePath "Returns the canonical path including the file name, i.e. an absolute path without symbolic links or redundant "." or ".." elements." Thank you for checking that. Stephan -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel