Sfoglia il codice sorgente

Use LINUX_APPLICATION_ID

Signed-off-by: Nicolas Fella <nicolas.fella@gmx.de>
Nicolas Fella 5 anni fa
parent
commit
29fa924853
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/gui/systray.cpp

+ 1 - 1
src/gui/systray.cpp

@@ -121,7 +121,7 @@ void Systray::showMessage(const QString &title, const QString &message, MessageI
 {
 #ifdef USE_FDO_NOTIFICATIONS
     if (QDBusInterface(NOTIFICATIONS_SERVICE, NOTIFICATIONS_PATH, NOTIFICATIONS_IFACE).isValid()) {
-        const QVariantMap hints = {{QStringLiteral("desktop-entry"), QStringLiteral("com.nextcloud.desktopclient.nextcloud")}};
+        const QVariantMap hints = {{QStringLiteral("desktop-entry"), LINUX_APPLICATION_ID}};
         QList<QVariant> args = QList<QVariant>() << APPLICATION_NAME << quint32(0) << APPLICATION_ICON_NAME
                                                  << title << message << QStringList() << hints << qint32(-1);
         QDBusMessage method = QDBusMessage::createMethodCall(NOTIFICATIONS_SERVICE, NOTIFICATIONS_PATH, NOTIFICATIONS_IFACE, "Notify");