<table><tr><td style="">bruns added a comment.
</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/D22296">View Revision</a></tr></table><br /><div><div><p>After having looked into the callchain again, I am not sure what the best action here is:</p>
<p>The old code did a DBus call of org.freedesktop.PowerManagement.Inhibit, which is implemented by powerdevil. Powerdevil only "schedules" the inhibition, but delays it for 5 seconds:<br />
<a href="https://github.com/KDE/powerdevil/blob/master/daemon/powerdevilpolicyagent.cpp#L521" class="remarkup-link" target="_blank" rel="noreferrer">https://github.com/KDE/powerdevil/blob/master/daemon/powerdevilpolicyagent.cpp#L521</a></p>
<p>... but closing the session triggers a shutdown of powerdevil, i.e. the inhibition was not enforced at all (we only did a pointless synchronous DBus call to powerdevil).</p>
<p>What about just removing the code?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D22296">https://phabricator.kde.org/D22296</a></div></div><br /><div><strong>To: </strong>bruns, Plasma, broulik, davidedmundson<br /><strong>Cc: </strong>apol, plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, mart<br /></div>