Summary: | Notifications are shown multiple times | ||
---|---|---|---|
Product: | [Unmaintained] plasma4 | Reporter: | FabiB <plusfabi> |
Component: | notifications | Assignee: | Marco Martin <notmart> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cmosqt, darrella, konapt, paulo.fidalgo.pt, plasma-bugs, rdieter, web, woebbeking |
Priority: | NOR | ||
Version: | 4.9.97 RC2 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kde-workspace/478e1cae4e86f08298beeaf8bd2b4579dfbdbd34 | Version Fixed In: | 4.11.0 |
Sentry Crash Report: | |||
Bug Depends on: | |||
Bug Blocks: | 313436 |
Description
FabiB
2013-01-18 09:58:54 UTC
I've got the same problem with the stable 4.10. In my case, however, I see double notifications from any app. Even when simple notify-send is used. Here is the result of a simple "notify-send test" : http://i.imgur.com/IdIORXP.png UPD: the bug is no more after "rm ~/.kde4/share/config/plasma* " (In reply to comment #2) > UPD: the bug is no more after "rm ~/.kde4/share/config/plasma* " Dont work here. even with a fresh installation and new $HOME it happens :( I confirm this behavior with 4.10.1, Slackware 14. * Start the rwall daemon. * Enable the kded write daemon. * From a terminal, send the following: echo Hello | rwall localhost I will receive anywhere from 2 to 18 messages and bells. *** Bug 313436 has been marked as a duplicate of this bug. *** This must be a bug in newly rewritten QML notification Plasma applet. This is the relevant method in Amarok (simplified). m_notify is QWeakPointer<KNotification> and is not touched anywhere else: void KNotificationBackend::showCurrentTrack( bool force ) { const QString title = i18n( "Now playing" ); const QString text = engine->prettyNowPlaying(); const QPixmap pixmap = album ? The::svgHandler()->imageWithBorder( album, 80 ) : QPixmap(); KNotification *notify = m_notify.data(); if( !notify ) notify = new KNotification( "trackChange" ); notify->setTitle( title ); notify->setText( text ); notify->setPixmap( pixmap ); if( m_notify ) // existing notification already shown notify->update(); notify->sendEvent(); // (re)start timeout in both cases m_notify = notify; } Notice that m_notify is reused if it still exists (showCurrentTrack() can be called a couple of time in succestion) and ::update() is called in it if it existed before. Amarok send multiple notification over dbus, see: http://quickgit.kde.org/?p=colibri.git&a=commit&h=9a96b9512579215bcddd8fc88041fdd7130dbb0f Here a patch fixing issue: https://git.reviewboard.kde.org/r/111480/ Fixed in master and KDE/4.11 Marking as fixed then Even with this patch I get still every notification (e. g. from kmail or konversation) twice, similar to the above IdIORXP.png (one next to the tray icon and the other 400 pixels higher. Could this be caused by a broken config file? I don't think it's related to this bug, kmail and konversation do not send multiple notifications... Can you test with a fresh user? |