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

reparse points on windows fool QDir::canonicalPath

    XMLWordPrintable

Details

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

    Description

      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...

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes