<table><tr><td style="">dfaure created this revision.<br />dfaure added a reviewer: ahmadsamir.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />dfaure 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/D29170">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>QStandardPaths::findExecutable will not return to us a non-executable binary.<br />
So implement our own iteration over $PATH to detect such a case.<br />
Note: this doesn't handle the case where PATH isn't set at all (QStandardPaths implements a fallback)<br />
nor do we implement this for Windows (where chmod -x doesn't really exist as is). I think this is fine,<br />
in the worst case the user will get the other error message, program not found.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>'sudo chmod a-x /usr/bin/gwenview' then try opening a picture with gwenview from e.g. dolphin, see the error message</p>
<p>CCBUG: 415567</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>BRANCH</strong><div><div>2020_04_findExecutable</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D29170">https://phabricator.kde.org/D29170</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/gui/kprocessrunner.cpp</div></div></div><br /><div><strong>To: </strong>dfaure, ahmadsamir<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns<br /></div>