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

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes