<table><tr><td style="">davidedmundson created this revision.<br />davidedmundson added a reviewer: Plasma.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />davidedmundson 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/D16587">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>kcminit had a slot to start processing something and a signal to emit<br />
when it's finished.</p>
<p>For DBus that's quite bad practice as it can leave you hanging in the<br />
case of a kcminit crashing. It's better to use the return of the<br />
original call to signal when something is done.</p>
<p>From ksmserver we can then just use DBus timeouts set on the interface<br />
than a secondary timer.</p>
<p>We also remove a pointless blocking call to kcminit introspecting<br />
everything, if kcminit is not running it will return with an error<br />
immediately which is no slower than checking first if it's not running<br />
and faster if it is.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Logged in<br />
Session logs showed kcminit ran</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D16587">https://phabricator.kde.org/D16587</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>ksmserver/startup.cpp<br />
ksmserver/startup.h<br />
startkde/kcminit/main.cpp<br />
startkde/kcminit/main.h</div></div></div><br /><div><strong>To: </strong>davidedmundson, Plasma<br /><strong>Cc: </strong>plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>