<table><tr><td style="">sitter created this revision.<br />sitter added a reviewer: Plasma.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />sitter 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/D22553">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>when plasmashell is particularly dead and not even able to restart, the SNI<br />
host may still be around when we check for it in the main.cpp as its<br />
disappearance from dbus is tied to sockets closing and dbus' event loop<br />
reacting to that. so there is a race potential that can cause the SNI<br />
to not actually be visible on account of the SNI host (plasmashell)<br />
being dead even though we expected SNI support to be available.</p>

<p>guard against this scenario by starting an automatic activation timer<br />
when the notification service disappears. should it not reappear within<br />
10 second we consider it dead and show the dialog automatically as the<br />
user won't be seeing the SNI anymore</p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">crash something so the sni appears</li>
<li class="remarkup-list-item">kill plasma</li>
<li class="remarkup-list-item">wait 10s</li>
<li class="remarkup-list-item">dialog appears</li>
</ul>

<ul class="remarkup-list">
<li class="remarkup-list-item">same again</li>
<li class="remarkup-list-item">restart plasma before 10s have passed</li>
<li class="remarkup-list-item">sni appears again in plasmashell</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R871 DrKonqi</div></div></div><br /><div><strong>BRANCH</strong><div><div>Plasma/5.16</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D22553">https://phabricator.kde.org/D22553</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/statusnotifier.cpp</div></div></div><br /><div><strong>To: </strong>sitter, Plasma<br /><strong>Cc: </strong>plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>