Browse Source

Fix D-Bus Notification `desktop-entry` field

adaptive-webui-19844
Chocobo1 4 years ago
parent
commit
d13be829c3
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 3
      src/gui/mainwindow.cpp

3
src/gui/mainwindow.cpp

@ -1678,8 +1678,7 @@ void MainWindow::showNotificationBaloon(const QString &title, const QString &msg @@ -1678,8 +1678,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<uint> reply = notifications.Notify("qBittorrent", 0, "qbittorrent", title,
msg, QStringList(), hints, getNotificationTimeout());
reply.waitForFinished();

Loading…
Cancel
Save