<table><tr><td style="">vpilo created this revision.<br />Restricted Application added a project: Frameworks.<br />Restricted Application added a subscriber: Frameworks.
</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/D4799" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The KNotifications library is immediately available for programs to send out notifications from the beginning of a desktop session. But if a startup program (or the frameworks themselves) sends out notifications before the desktop notifications service is ready, users will get old-school passive pop-ups, on top of the splash screen. In case other kinds of notifications were setup (e.g. sounds), those also gets in the way.</p>
<p>With this change, all notifications will be blocked until KSplash goes away.</p>
<div style="margin: 16px 0;
padding: 12px;
border-left: 3px solid #2980b9;
background: #daeaf3;"><span class="remarkup-note-word">NOTE:</span> In case the splash screen is off, the change does nothing. You still get the passive popup. Anything that would make for a better "session is still loading" trigger than the D-Bus service of KSplash?</div></div></div><br /><div><strong>TEST PLAN</strong><div><p>Testing with application:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">put into list of Startup/Shutdown in SystemSettings a program that shows a KNotification on start (e.g. Yakuake from distro's package, to test binary compatibility).</li>
<li class="remarkup-list-item">from the program's settings, set a valid sound and ensure a popup is shown on the event occurrence</li>
<li class="remarkup-list-item">logout and login again</li>
<li class="remarkup-list-item">the notification(s) should appear as regular Plasma notifications only when the splash is over, along with the sound</li>
</ul>
<p>Testing with system event:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">On a laptop or a device with touchpad, set "Disable touchpad when mouse is plugged in" from Settings > Input Devices > Touchpad > Enable/Disable Touchpad tab. Ensure you login with a mouse plugged in</li>
<li class="remarkup-list-item">from rom Settings > Touchpad, set a valid sound and ensure a popup is shown on the event occurrence</li>
<li class="remarkup-list-item">logout and login again</li>
<li class="remarkup-list-item">the "touchpad disabled" notification should appear as regular Plasma notifications only when the splash is over, along with the sound</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R289 KNotifications</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D4799" rel="noreferrer">https://phabricator.kde.org/D4799</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/knotificationmanager.cpp<br />
src/knotificationmanager_p.h</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>vpilo<br /><strong>Cc: </strong>Frameworks<br /></div>