<table><tr><td style="">hoffmannrobert created this revision.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />hoffmannrobert 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/D19784">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Document entries pointing to unavailable network shares freeze<br />
the application menu, so avoid calling QT_LSTAT (lstat64())<br />
three times for each list item and reading the first 16k of<br />
each document when showing the recent documents list in application<br />
menu.</p>

<p>The current behaviour of accessing each document in the list<br />
just by browsing the application menu is inacceptable in large<br />
enterprise environments where thousands of users work<br />
with documents located on mounted network shares. This induces<br />
additional load on filers and network, slows down working<br />
with the menu and makes its functioning dependent on network<br />
and remote filesystems.</p></div></div><br /><div><strong>TEST PLAN</strong><div><ol class="remarkup-list">
<li class="remarkup-list-item">Open a document on a mounted network share, e.g. a text document on a CIFS share with Libreoffice Writer or Kate.</li>
<li class="remarkup-list-item">Open the application menu (kicker), look at Recent Documents, the document's filename should be there.</li>
<li class="remarkup-list-item">Pull out the network plug, open the application menu, try to open Recent Documents. Without this patch, the application menu doesn't work anymore and just hangs. With this patch applied, the menu continues working.</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R119 Plasma Desktop</div></div></div><br /><div><strong>BRANCH</strong><div><div>fix_recent_documents_kicker_hang</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D19784">https://phabricator.kde.org/D19784</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>applets/kicker/plugin/recentusagemodel.cpp</div></div></div><br /><div><strong>To: </strong>hoffmannrobert<br /><strong>Cc: </strong>plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>