Uploaded image for project: 'Qt Installer Framework'
  1. Qt Installer Framework
  2. QTIFW-709

OS X: Series of Settings operations on file fail for elevated installations

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 2.0.1
    • 2.0.0
    • General
    • None
    • 6bbba5426c74af6c313958d47ee333096d503a8e

      The Qt Installer tries to write an .ini file by a series of Settings operations:

      patchQtExamplesAndDoc = function(aComponent, aComponentRootPath, aQtInstallationName)
      {
          print("Patching doc & examples for: " + aComponentRootPath);
          var fileName = aComponentRootPath + "/" + "bin" + "/" + "qt.conf";
          print("qt.conf file: " + fileName);
      
          aComponent.addOperation("Settings",
              "path=" + fileName,
              "method=set",
              "key=Paths/Prefix",
              "value=..");
      
          aComponent.addOperation("Settings",
              "path=" + fileName,
              "method=set",
              "key=Paths/Examples",
              "value=../../Examples/" + aQtInstallationName);
      
          aComponent.addOperation("Settings",
              "path=" + fileName,
              "method=set",
              "key=Paths/Documentation",
              "value=../../Docs/" + aQtInstallationName);
      }
      

      On OS X all but the first operation fail silently for elevated installations, resulting in an incomplete .ini file.

        For Gerrit Dashboard: QTIFW-709
        # Subject Branch Project Status CR V

            kkohne Kai Köhne
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes