Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 75d327ce authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Use ServerManager to get Indexing Agent service name

parent ec32c68a
......@@ -53,10 +53,6 @@ bool PimCommon::MailUtil::isImapFolder(const Akonadi::Collection &col, bool &isO
QString PimCommon::MailUtil::indexerServiceName()
{
QLatin1String basename("org.freedesktop.Akonadi.Agent.akonadi_indexing_agent");
if (Akonadi::ServerManager::hasInstanceIdentifier()) {
return basename + QLatin1Char('.') + Akonadi::ServerManager::instanceIdentifier();
} else {
return basename;
}
return Akonadi::ServerManager::agentServiceName(Akonadi::ServerManager::Agent,
QStringLiteral("akonadi_indexing_agent"));
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment