From 5d5087023cffeb92ea6ed4db85abc01bb9559e13 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 25 Aug 2023 22:10:53 +0300 Subject: [PATCH] kdeui: use the default player ID for KNotification sounds Signed-off-by: Ivailo Monev --- kdeui/notifications/knotification.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kdeui/notifications/knotification.cpp b/kdeui/notifications/knotification.cpp index 1934012a..442e039f 100644 --- a/kdeui/notifications/knotification.cpp +++ b/kdeui/notifications/knotification.cpp @@ -183,10 +183,8 @@ void KNotificationManager::send(KNotification *notification, const bool persiste QDBusConnection::sessionBus(), this ); } - // TODO: configurable player - QDBusReply playreply = m_kaudioplayeriface->call( - QString::fromLatin1("play"), eventsoundfile, QString::fromLatin1("knotification") - ); + // the sound player is configurable and is used by the bball plasma applet for example + QDBusReply playreply = m_kaudioplayeriface->call(QString::fromLatin1("play"), eventsoundfile); if (!playreply.isValid()) { kWarning(s_knotificationarea) << "invalid play reply" << playreply.error().message(); }