Commit 12559bec authored by Laurent Montel's avatar Laurent Montel 😁

kmail desktop file was renamed

parent 744e64b7
...@@ -42,7 +42,7 @@ bool UriHandler::process(const QString &uri, const Akonadi::Item &item) ...@@ -42,7 +42,7 @@ bool UriHandler::process(const QString &uri, const Akonadi::Item &item)
if (uri.startsWith(QStringLiteral("kmail:"))) { if (uri.startsWith(QStringLiteral("kmail:"))) {
// make sure kmail is running or the part is shown // make sure kmail is running or the part is shown
const QString desktopFile = QStandardPaths::locate(QStandardPaths::ApplicationsLocation, QStringLiteral("org.kde.kmail.desktop")); const QString desktopFile = QStandardPaths::locate(QStandardPaths::ApplicationsLocation, QStringLiteral("org.kde.kmail2.desktop"));
QString error; QString error;
if (KToolInvocation::startServiceByDesktopPath(desktopFile, QStringList(), &error) == 0) { if (KToolInvocation::startServiceByDesktopPath(desktopFile, QStringList(), &error) == 0) {
// parse string, show // parse string, show
...@@ -92,7 +92,7 @@ bool UriHandler::process(const QString &uri, const Akonadi::Item &item) ...@@ -92,7 +92,7 @@ bool UriHandler::process(const QString &uri, const Akonadi::Item &item)
const QString mimeType = QUrlQuery(url).queryItemValue(QStringLiteral("type")); const QString mimeType = QUrlQuery(url).queryItemValue(QStringLiteral("type"));
if (mimeType.toLower() == QLatin1String("message/rfc822")) { if (mimeType.toLower() == QLatin1String("message/rfc822")) {
// make sure kmail is running or the part is shown // make sure kmail is running or the part is shown
const QString desktopFile = QStandardPaths::locate(QStandardPaths::ApplicationsLocation, QStringLiteral("org.kde.kmail.desktop")); const QString desktopFile = QStandardPaths::locate(QStandardPaths::ApplicationsLocation, QStringLiteral("org.kde.kmail2.desktop"));
QString error; QString error;
if (KToolInvocation::startServiceByDesktopPath(desktopFile, QStringList(), &error) == 0) { if (KToolInvocation::startServiceByDesktopPath(desktopFile, QStringList(), &error) == 0) {
OrgKdeKmailKmailInterface kmailInterface(QStringLiteral("org.kde.kmail"), QStringLiteral("/KMail"), QDBusConnection::sessionBus()); OrgKdeKmailKmailInterface kmailInterface(QStringLiteral("org.kde.kmail"), QStringLiteral("/KMail"), QDBusConnection::sessionBus());
......
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