bruns added a comment.
After having looked into the callchain again, I am not sure what the best action here is: 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: https://github.com/KDE/powerdevil/blob/master/daemon/powerdevilpolicyagent.cpp#L521 ... 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). What about just removing the code? REPOSITORY R120 Plasma Workspace REVISION DETAIL https://phabricator.kde.org/D22296 To: bruns, #plasma, broulik, davidedmundson Cc: apol, plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, mart