mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
Fix D-Bus Notification desktop-entry
field
This commit is contained in:
parent
e18b2ab437
commit
d13be829c3
1 changed files with 1 additions and 2 deletions
|
@ -1678,8 +1678,7 @@ void MainWindow::showNotificationBaloon(const QString &title, const QString &msg
|
||||||
// some inactivity shuts it down. Other DEs, like GNOME, choose
|
// some inactivity shuts it down. Other DEs, like GNOME, choose
|
||||||
// to start their daemons at the session startup and have it sit
|
// to start their daemons at the session startup and have it sit
|
||||||
// idling for the whole session.
|
// idling for the whole session.
|
||||||
QVariantMap hints;
|
const QVariantMap hints {{QLatin1String("desktop-entry"), QLatin1String("org.qbittorrent.qBittorrent")}};
|
||||||
hints["desktop-entry"] = "qBittorrent";
|
|
||||||
QDBusPendingReply<uint> reply = notifications.Notify("qBittorrent", 0, "qbittorrent", title,
|
QDBusPendingReply<uint> reply = notifications.Notify("qBittorrent", 0, "qbittorrent", title,
|
||||||
msg, QStringList(), hints, getNotificationTimeout());
|
msg, QStringList(), hints, getNotificationTimeout());
|
||||||
reply.waitForFinished();
|
reply.waitForFinished();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue