dfaure updated this revision to Diff 81213. dfaure added a comment.
Resolve relative executables using the directory of the .desktop file referring to them Not useful for /usr/share/applications stuff, but useful for custom setups where a custom desktop file refers to a local executable. Re-reading the thread https://lists.freedesktop.org/archives/xdg/2011-April/011883.html I'm wondering if this is the right thing to do though. After all, on the command line "foo" doesn't start a local executable called foo, only ./foo does that. I was always working under that assumption for Exec= as well (the fact that the current dir isn't part of the search path). Undecided. REPOSITORY R241 KIO CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D29170?vs=81209&id=81213 BRANCH 2020_04_findExecutable REVISION DETAIL https://phabricator.kde.org/D29170 AFFECTED FILES autotests/applicationlauncherjobtest.cpp src/core/desktopexecparser.cpp src/gui/kprocessrunner.cpp To: dfaure, ahmadsamir Cc: kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns