<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/D27629">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Currently startplasma spawns plasma-session then sits around waiting for<br />
that to finish</p>

<p>plasma-session spawns all the startup then also just sits around doing<br />
nothing</p>

<p>This patch makes plasma-session spawn all the startup and then quit.</p>

<p>It also splits the owner of the org.kde.shutdown interface to be on<br />
demand. plasma-shutdown asks ksmserver to quit and then if applicable<br />
runs the shutdown scripts or not.</p>

<p>Startplasma then knows when to exit by monitoring the DBus service<br />
status directly.</p>

<p>The benefits are that we save some resources by not needing<br />
plasma-session lingering about.</p>

<p>It also means the shutdown interface is re-usable as-is when the pending<br />
systemd startup method is used.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Logged in and:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">ran killall ksmserver, session ended as before</li>
<li class="remarkup-list-item">logged out and cancelled due to unsaved changes</li>
<li class="remarkup-list-item">logged out and completed logout</li>
<li class="remarkup-list-item">logged out and rebooted</li>
</ul></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/D27629">https://phabricator.kde.org/D27629</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>ksmserver/CMakeLists.txt<br />
libkworkspace/CMakeLists.txt<br />
startkde/CMakeLists.txt<br />
startkde/plasma-session/CMakeLists.txt<br />
startkde/plasma-session/main.cpp<br />
startkde/plasma-session/org.kde.Shutdown.xml<br />
startkde/plasma-session/shutdown.cpp<br />
startkde/plasma-session/shutdown.h<br />
startkde/plasma-session/startup.cpp<br />
startkde/plasma-shutdown/CMakeLists.txt<br />
startkde/plasma-shutdown/main.cpp<br />
startkde/plasma-shutdown/org.kde.Shutdown.xml<br />
startkde/plasma-shutdown/shutdown.cpp<br />
startkde/plasma-shutdown/shutdown.h<br />
startkde/startplasma-wayland.cpp<br />
startkde/startplasma-x11.cpp<br />
startkde/startplasma.cpp</div></div></div><br /><div><strong>To: </strong>davidedmundson, Plasma<br /><strong>Cc: </strong>plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>