shell_i: Don't load the old extension in >= 10.10 #2340

This commit is contained in:
Jocelyn Turcotte 2015-06-16 15:29:43 +02:00
parent 52f64358c7
commit 977b1464b5

View file

@ -107,6 +107,9 @@ ownCloudGui::ownCloudGui(Application *parent) :
void ownCloudGui::setupOverlayIcons()
{
#ifdef Q_OS_MAC
// Make sure that we only send the load event to the legacy plugin when
// using OS X <= 10.9 since 10.10 starts using the new FinderSync one.
if (QSysInfo::MacintoshVersion < QSysInfo::MV_10_10) {
const QLatin1String finderExtension("/Library/ScriptingAdditions/SyncStateFinder.osax");
if (QFile::exists(finderExtension)) {
QString aScript = QString::fromUtf8("tell application \"Finder\"\n"
@ -131,6 +134,7 @@ void ownCloudGui::setupOverlayIcons()
} else {
qDebug() << finderExtension << "does not exist! Finder Overlay Plugin loading failed";
}
}
#endif
}