mdlubakowski marked an inline comment as done. mdlubakowski added inline comments.
INLINE COMMENTS > dfaure wrote in krun.cpp:147 > Hmm, because isExecutable(mimetype) also returns true for desktop files. > > So this would change behaviour for users of this API. (see why we try to > limit public API...). > > Most users found in https://lxr.kde.org/ident?_i=isExecutableFile would > actually see this as a bugfix (they warn about, or forbid, local execution), > but > https://lxr.kde.org/source/extragear/utils/krusader/krusader/Panel/panelfunc.cpp > would try to run the desktop file with runCommand which uses KProcess, this > will fail. > > So... I was just wondering (and hinting at an investigation, not requesting a > change), but I have my answer now.. > > I suggest to revert your last change, and maybe add a comment about why we > can't use isExecutable. (Or we could extract a common function...) I understand, it was a bit careless from me not to check this beforehand. Reverted and added a note. REPOSITORY R241 KIO BRANCH arcpatch-D22510 REVISION DETAIL https://phabricator.kde.org/D22510 To: mdlubakowski, #frameworks, dfaure, cfeck, pino Cc: broulik, ngraham, probono, kde-frameworks-devel, LeGast00n, GB_2, michaelh, bruns