<table><tr><td style="">dfaure updated this revision to Diff 81213.<br />dfaure added a comment.
</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><div><p>Resolve relative executables using the directory of the .desktop file referring to them</p>
<p>Not useful for /usr/share/applications stuff, but useful for custom setups<br />
where a custom desktop file refers to a local executable.</p>
<p>Re-reading the thread <a href="https://lists.freedesktop.org/archives/xdg/2011-April/011883.html" class="remarkup-link" target="_blank" rel="noreferrer">https://lists.freedesktop.org/archives/xdg/2011-April/011883.html</a><br />
I'm wondering if this is the right thing to do though.</p>
<p>After all, on the command line "foo" doesn't start a local executable called foo,<br />
only ./foo does that. I was always working under that assumption for Exec= as well<br />
(the fact that the current dir isn't part of the search path). Undecided.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D29170?vs=81209&id=81213">https://phabricator.kde.org/D29170?vs=81209&id=81213</a></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>autotests/applicationlauncherjobtest.cpp<br />
src/core/desktopexecparser.cpp<br />
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>