<table><tr><td style="">hein created this revision.<br />hein added reviewers: dfaure, davidedmundson, mart.<br />Restricted Application added a project: Frameworks.<br />Restricted Application added a subscriber: Frameworks.<br />hein 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/D10405" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Without this patch, runCommandInternal tries running first and<br />
handles a missing executable in slotProcessExited after process<br />
execution ended with a non-zero exit code.</p>

<p>One of the side-effects is that a startup notification is created<br />
even if nothing is ultimately run.</p>

<p>With this patch, we check for executable existence first and<br />
abort if we can't find it.</p>

<p>This fixes a Plasma shell crash in the Task Manager applet: We<br />
use KRun from inside the onReleased handler of a MouseArea. In<br />
this error case this leads to a KMessageBox spinning the event<br />
loop. The delegate hosting the MouseArea is in the meanwhile<br />
deleted because it's replaced by a different one for the startup<br />
creation. After closing the dialog we're back in the destroyed<br />
delegate and crash.</p>

<p>BUG:385942</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</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/D10405" rel="noreferrer">https://phabricator.kde.org/D10405</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/core/kprotocolinfofactory.cpp<br />
src/widgets/jobuidelegate.cpp<br />
src/widgets/jobuidelegate.h<br />
src/widgets/krun.cpp</div></div></div><br /><div><strong>To: </strong>hein, dfaure, davidedmundson, mart<br /><strong>Cc: </strong>Frameworks, michaelh, ngraham<br /></div>