<table><tr><td style="">ngraham created this revision.<br />ngraham added reviewers: VDG, Frameworks, Dolphin, apol.<br />ngraham 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/D21466">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>After Samba is installed, very frequently it will not work correctly until the machine is<br />
rebooted. One potential reason is when the installed package has made group membership<br />
changes, which only take effect after a reboot.</p>
<p>This patch implements a reboot recommendation along with a button to reboot the machine.<br />
Both are shown immediately after Samba has been installed.</p>
<p>Because some expert users may understand the technical details of what's going on, the<br />
reboot is only recommended, not required. If the window is closed and then re-opened,<br />
the normal Samba sharing configuration UI is displayed instead of the reboot prompt.</p>
<p>Added a new function rather than using a Lambda because it may be useful for additional<br />
purposes too (e.g. <a href="https://bugs.kde.org/show_bug.cgi?id=407846" class="remarkup-link" target="_blank" rel="noreferrer">https://bugs.kde.org/show_bug.cgi?id=407846</a>)</p>
<p>FEATURE: 407845<br />
FIXED-IN: 19.08.0</p></div></div><br /><div><strong>TEST PLAN</strong><div><p><a href="http://s1.webmshare.com/Ry55q.webm" class="remarkup-link" target="_blank" rel="noreferrer">http://s1.webmshare.com/Ry55q.webm</a> (not uploaded to Phab due to file size limit)</p>
<ol class="remarkup-list">
<li class="remarkup-list-item">Remove Samba</li>
<li class="remarkup-list-item">Go to share a folder</li>
<li class="remarkup-list-item">Click "Install Samba"</li>
<li class="remarkup-list-item">After the installation has completed, click the "Restart" button and see that the machine reboots</li>
</ol>
<ol class="remarkup-list" start="5">
<li class="remarkup-list-item">Remove Samba again</li>
<li class="remarkup-list-item">Go to share a folder</li>
<li class="remarkup-list-item">Click "Install Samba"</li>
<li class="remarkup-list-item">Close the window and re-open it instead of rebooting as recommended</li>
<li class="remarkup-list-item">See that the Samba sharing config UI is all there</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R432 File Sharing (Samba) integration</div></div></div><br /><div><strong>BRANCH</strong><div><div>recommend-rebooting (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D21466">https://phabricator.kde.org/D21466</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>samba/filepropertiesplugin/sambausershareplugin.cpp<br />
samba/filepropertiesplugin/sambausershareplugin.h</div></div></div><br /><div><strong>To: </strong>ngraham, VDG, Frameworks, Dolphin, apol<br /></div>