Ticket #46317: find-ColorSync-profiles.patch

File find-ColorSync-profiles.patch, 676 bytes (added by eborisch (Eric A. Borisch), 10 years ago)

Updated patch.

  • core/libs/dimg/filters/icc/iccprofile.cpp

    old new  
    504504    // MacPorts installs for KDE, so we include the XDG data dirs, including /usr/share/color/icc
    505505    QStringList dataDirs = QString::fromLocal8Bit(getenv("XDG_DATA_DIRS")).split(':', QString::SkipEmptyParts);
    506506
    507     if (!dataDirs.contains(QLatin1String("/opt/local/share")))
     507    if (!dataDirs.contains(QLatin1String("%%PREFIX%%/share")))
    508508    {
    509         dataDirs << "/opt/local/share";
     509        dataDirs << "%%PREFIX%%/share";
    510510    }
    511511
    512512    foreach(const QString& dataDir, dataDirs)