From 482dad00fd22186c338d380b95cb1e1f31f36d1a Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sat, 10 Apr 2021 15:47:03 +0800 Subject: [PATCH] Fix D-Bus Notification `desktop-entry` field --- src/gui/mainwindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index b663dd34b..2d7c83b1e 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -1663,8 +1663,7 @@ void MainWindow::showNotificationBaloon(const QString &title, const QString &msg // some inactivity shuts it down. Other DEs, like GNOME, choose // to start their daemons at the session startup and have it sit // idling for the whole session. - QVariantMap hints; - hints["desktop-entry"] = "qBittorrent"; + const QVariantMap hints {{QLatin1String("desktop-entry"), QLatin1String("org.qbittorrent.qBittorrent")}}; QDBusPendingReply reply = notifications.Notify("qBittorrent", 0, "qbittorrent", title, msg, QStringList(), hints, -1); reply.waitForFinished();