<table><tr><td style="">nicolasfella created this revision.<br />nicolasfella added reviewers: Plasma, broulik.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />nicolasfella requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D26604">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>At notification backend initialization we don't just check whether the notification service exists but also whether one could be activated and treat it as existant then.<br />
When the service owner changes (e.g. plasmashell is crashing) we check if a new service exists but not whether one could be activated. A notification coming in while plasmashell is crashed thus triggeres the horrible KPassivePopup fallback.</p>
<p>plasmashell itself is not DBus activatable, but it has a waitforname helper that is and forwards the notification to Plasma. With this patch instead of using the fallback we DBus-activate the helper and the notification appears as soon as Plasma is restarted.</p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">application is started and sends notification after plasma started: No change</li>
<li class="remarkup-list-item">application sends notification before plasma is started: No change, notification is shown as soon as Plasma starts</li>
<li class="remarkup-list-item">application sends notification with running plasma, then plasma quits, application sends another notification, plasma restarts: Second notification is shown as soon as plasma starts instead of creating KPassivePopup</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R289 KNotifications</div></div></div><br /><div><strong>BRANCH</strong><div><div>checkactivatable</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D26604">https://phabricator.kde.org/D26604</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/notifybypopup.cpp</div></div></div><br /><div><strong>To: </strong>nicolasfella, Plasma, broulik<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns<br /></div>