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

Qt ignores resource search paths of brew on macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.9.1
    • Core: I/O
    • None
    • brew/macOS
    • macOS
    • PM Pending Features

    Description

      Original issue on GitHub.

      #machomebrew installs software and resources under /usr/local/share but this path is ignored by Qt Core according to official documentation of QStandardPaths, which states only "~/Library/Application Support" path for resources. This issue makes use of KDE software ports to brew/macOS very hard. At first we had tried to create symlinks manually, e.g. 

      mkdir "#{Etc.getpwuid.dir}/Library/Application Support/kdevelop"
      system "ln", "-sf", "#{HOMEBREW_PREFIX}/share/icons/breeze/breeze-icons.rcc", "#{Etc.getpwuid.dir}/Library/Application Support/kdevelop/icontheme.rcc"
      

      Which is considered to be a hack. But in recent release of brew even this hack doesn't work and produces error, because brew now builds formulas in sandbox, and "~/Library/Application Support" is obviously outside of sandbox.

       

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            yurikoles Yurii Kolesnykov
            Vladimir Minenko Vladimir Minenko
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes