From 8f17873f9fc8139f8c0ddcb448496b2fefbc59b1 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Tue, 16 Dec 2014 10:02:05 +0100 Subject: go into the correct subdir this will allow us to have different plugin types in future with nicer separation of the libraries from each other (faster scan times, less chance of name collision, etc) --- common/resource.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/resource.cpp') diff --git a/common/resource.cpp b/common/resource.cpp index 62c521d..270b7f4 100644 --- a/common/resource.cpp +++ b/common/resource.cpp @@ -69,7 +69,10 @@ ResourceFactory *ResourceFactory::load(const QString &resourceName) for (auto const &path: QCoreApplication::instance()->libraryPaths()) { if (path.endsWith(QLatin1String("plugins"))) { QDir pluginDir(path); + //TODO: centralize this so that it is easy to change centrally + // also ref'd in cmake as ${AKONADI_RESOURCE_PLUGINS_PATH} pluginDir.cd(QStringLiteral("akonadi2")); + pluginDir.cd(QStringLiteral("resources")); for (const QString &fileName: pluginDir.entryList(QDir::Files)) { const QString path = pluginDir.absoluteFilePath(fileName); -- cgit v1.2.3