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

OS X: QStandardPaths: inappropriate fonts and writable locations

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 5.15
    • 5.4.0
    • Core: Other
    • None
    • OS X 10.9.5
    • macOS

    Description

      qtdiag from the official 5.4.0 OS X installer provides the following information:

      Standard paths [*...* denote writable entry]:
        DesktopLocation: "Desktop" */Users/bertin/Desktop*
        DocumentsLocation: "Documents" */Users/bertin/Documents*
        FontsLocation: "Fonts" */System/Library/Fonts*
        ApplicationsLocation: "Applications" */Applications*
        MusicLocation: "Music" */Users/bertin/Music*
        MoviesLocation: "Movies" */Users/bertin/Movies*
        PicturesLocation: "Pictures" */Users/bertin/Pictures*
        TempLocation: "TemporaryItems" */var/folders/j1/1439ppj08xj8h6006s6drbq00000gs/T*
        HomeLocation: "Home" */Users/bertin*
        DataLocation: "Application Support" */Users/bertin/Library/Application Support/QtProject/qtdiag* /Library/Application Support/QtProject/qtdiag /usr/local/qt/5/5.4/clang_64/bin/
        CacheLocation: "Caches" */Users/bertin/Library/Caches/QtProject/qtdiag* /Library/Caches/QtProject/qtdiag
        GenericDataLocation: "Application Support" */Users/bertin/Library/Application Support* /Library/Application Support
        RuntimeLocation: "Application Support" */Users/bertin/Library/Application Support*
        ConfigLocation: "Preferences" */Users/bertin/Library/Preferences*
        DownloadLocation: "Documents" */Users/bertin/Documents*
        GenericCacheLocation: "Caches" */Users/bertin/Library/Caches* /Library/Caches
        GenericConfigLocation: "Preferences" */Users/bertin/Library/Preferences*
      

      Several things strike me as erroneous in that print-out. In order of appearance:

      • The fonts location should be ~/Library/Fonts, /Library/Fonts, /System/Library/Fonts ; not just and only /System/Library/Fonts.
      • The writable fonts location should be ~/Library/Fonts and CERTAINLY NOT /System/Library/Fonts
      • The ApplicationsLocation /Applications should not be writable. I checked: this writable state does not correspond to whether the directory is actually writable by the user who calls qtdiag.

      In addition to this I've seen a claim on the KDE-Mac mailing list that the DataLocation path can also contain "/Library/Application Support" as a writable location, instead of "~/Library/Application Support". I have not been able to reproduce this, but it seems worth investigating.

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            rjvbertin René Bertin
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes