Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-7384

reparse points on windows fool QDir::canonicalPath

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.6.0
    • Core: I/O
    • None

      This shows up when, for example, installing the qt sdk under a mount point. Starting Creator returns this error message:
      Failed to load core: Could not find 'Core.pulginspec' in Volume

      {<guid here>}

      \<path below mount point here>

      A simple test program illustrates:

      #include <iostream>
      #include <QApplication>
      #include <QDir>
      
      int main(int argc, char **argv)
      {
        new QApplication(argc, argv);
      
        std::cout << "applicationDirPath: " << qPrintable(qApp->applicationDirPath()) << std::endl;
      
        QDir d(qApp->applicationDirPath());
        std::cout << "canonicalPath: " << qPrintable(d.canonicalPath()) << std::endl;
      
        return 0;
      }
      

      When run under a normal path, the two lines output are the same. When run under a mount point, the second starts with Volume...

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            biochimia João Abecasis
            colingibbs Colin Gibbs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes