<div dir="ltr">Rene,<br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 8, 2015 at 5:52 PM, René J.V. <span dir="ltr"><<a href="mailto:rjvbertin@gmail.com" target="_blank">rjvbertin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thursday January 08 2015 16:48:46 Jeremy Whiting wrote:<br>
<br>
I just installed my brandspankingnew qt5-mac concurrent alongside my ditto qt4-mac. A priori the QSP patch is included, but qtdiag prints<br>
<br>
> Library info:<br>
>   PrefixPath: /opt/local/libexec/qt5<br>
>   DocumentationPath: /opt/local/share/doc/qt5<br>
>   HeadersPath: /opt/local/include/qt5<br>
>   LibrariesPath: /opt/local/libexec/qt5/Library/Frameworks<br>
>   LibraryExecutablesPath: /opt/local/libexec/qt5/libexec<br>
>   BinariesPath: /opt/local/libexec/qt5/bin<br>
>   PluginsPath: /opt/local/share/qt5/plugins<br>
>   ImportsPath: /opt/local/share/qt5/imports<br>
>   Qml2ImportsPath: /opt/local/share/qt5/qml<br>
>   ArchDataPath: /opt/local/libexec/qt5<br>
>   DataPath: /opt/local/share/qt5<br>
>   TranslationsPath: /opt/local/share/qt5/translations<br>
>   ExamplesPath: /opt/local/share/qt5/examples<br>
>   TestsPath: /opt/local/share/qt5/tests<br>
><br>
> Standard paths [*...* denote writable entry]:<br>
>   DesktopLocation: "Desktop" */Users/bertin/Desktop*<br>
>   DocumentsLocation: "Documents" */Users/bertin/Documents*<br>
>   FontsLocation: "Fonts" */System/Library/Fonts*<br>
>   ApplicationsLocation: "Applications" */Applications*<br>
>   MusicLocation: "Music" */Users/bertin/Music*<br>
>   MoviesLocation: "Movies" */Users/bertin/Movies*<br>
>   PicturesLocation: "Pictures" */Users/bertin/Pictures*<br>
>   TempLocation: "TemporaryItems"<br>
>   */var/folders/j1/1439ppj08xj8h6006s6drbq00000gs/T* HomeLocation: "Home"<br>
>   */Users/bertin*<br>
>   DataLocation: "Application Support" */Users/bertin/Library/Application<br>
>   Support/Qt Project/qtdiag* /Library/Application Support/Qt Project/qtdiag<br>
>   /opt/local/share/Qt Project/qtdiag /Library/Application Support/Qt<br>
>   Project/qtdiag /opt/local/libexec/qt5/bin/ CacheLocation: "Caches"<br>
>   */Users/bertin/Library/Caches/Qt Project/qtdiag* /Library/Caches/Qt<br>
>   Project/qtdiag GenericDataLocation: "Application Support"<br>
>   */Users/bertin/Library/Application Support* /Library/Application Support<br>
>   /opt/local/share /Library/Application Support RuntimeLocation:<br></blockquote><div><br></div><div>^^ Looks like it added /opt/local/share just fine to the GenericDataLocation as expected, no?</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
>   "Application Support" */Users/bertin/Library/Application Support*<br>
>   ConfigLocation: "Preferences" */Users/bertin/Library/Preferences*<br>
>   DownloadLocation: "Documents" */Users/bertin/Documents*<br>
>   GenericCacheLocation: "Caches" */Users/bertin/Library/Caches*<br>
>   /Library/Caches<br>
>   GenericConfigLocation: "Preferences" */Users/bertin/Library/Preferences*<br>
<br>
That reeks that the patch doesn't do anything. I wonder, looking at the code:<br>
<br>
QStringList QStandardPaths::standardLocations(StandardLocation type)<br>
{<br>
    QStringList dirs;<br>
<br>
    if (type == GenericDataLocation || type == DataLocation || type == GenericCacheLocation || type == CacheLocation) {<br>
        const QString path = macLocation(type, kOnAppropriateDisk);<br>
        if (!path.isEmpty())<br>
            dirs.append(path);<br>
    }<br>
<br>
    if (type == GenericDataLocation) {<br>
        dirs.append(xdgDataDirs());<br>
    }<br>
<br>
    if (type == DataLocation) {<br>
        QStringList xdgDirs = xdgDataDirs();<br>
        for (int i = 0; i < xdgDirs.count(); ++i) {<br>
            appendOrganizationAndApp(xdgDirs[i]);<br>
        }<br>
        dirs.append(xdgDirs);<br>
<br>
        CFBundleRef mainBundle = CFBundleGetMainBundle();<br>
        if (mainBundle) {<br>
<br>
I'm tempted to say that the 1st, conditional invocation of xdgDataDirs() should come *before* the call to macLocation(), no?<br>
<br>
Also, side-ways related: why does Qt only look in /System/Library/Fonts, and not first in /Library/Fonts as the OS does?<br>
<span class="HOEnZb"><font color="#888888"><br>
R.<br>
</font></span></blockquote></div><br></div></div>