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

applicationName() default value broken on macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.4.0
    • 6.4.0 Beta4, 6.5
    • Build System: CMake
    • None
    • 865b1721bd (qt/qtbase/dev) 865b1721bd (qt/tqtc-qtbase/dev) 7bb095f09c (qt/qtbase/6.4) 7bb095f09c (qt/tqtc-qtbase/6.4) fb12a7f9b9 (qt/qtbase/6.4.0) fb12a7f9b9 (qt/tqtc-qtbase/6.4.0)

    Description

      macOS with qtbase/dev, using ninja. QCoreApplication::applicationName() returns "${PRODUCT_NAME}" unless the application calls setApplicationName(). This is wrong and breaks the behavior promised in the docs: "If not set, the application name defaults to the executable name"
       
      This can have more serious consequences on a number of things, for example consider QStandardPath::CacheLocation: it now returns "/Users/<user>/Library/Caches/${PRODUCT_NAME}" for any application that does not explicitly set a name.
       

      Attachments

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

        Activity

          People

            alexandru.croitor Alexandru Croitor
            lagocs Laszlo Agocs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes