Bug 423157

Summary: KF5 KIO runs /usr/bin/kioexec instead of /usr/libexec/kf5/kioexec
Product: [Frameworks and Libraries] frameworks-kio Reporter: Kevin Kofler <kevin.kofler>
Component: generalAssignee: KIO Bugs <kio-bugs-null>
Status: REPORTED ---    
Severity: normal CC: a.samirh78, faure, kdelibs-bugs, rdieter
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
See Also: https://bugzilla.redhat.com/show_bug.cgi?id=1848491
Latest Commit: Version Fixed In:

Description Kevin Kofler 2020-06-18 13:30:51 UTC
SUMMARY
This is essentially the same bug as the fixed bug #386859, but for kioexec rather than kioslave: KF5 KIO is running /usr/bin/kioexec from kdelibs3 instead of /usr/libexec/kf5/kioexec from kf5-kio.

We found out because of a bug affecting the legacy kioexec (see https://bugzilla.redhat.com/show_bug.cgi?id=1768193 or bug #423119). I have now fixed that bug, but KF5 should not run kdelibs3 executables to begin with.

Downstream bug:
https://invent.kde.org/frameworks/kio/-/commit/38b7b483ccb7e4d1cf94e38d12130cfb8161c333

STEPS TO REPRODUCE
1. Install the kdelibs3 compatibility package.
2. Use KF5 KIO to run something that needs kioexec.

OBSERVED RESULT
Runs /usr/bin/kioexec from kdelibs3.

EXPECTED RESULT
Should run /usr/libexec/kf5/kioexec from KF5.

SOFTWARE/OS VERSIONS
Affects any kf5-kio since:
https://invent.kde.org/frameworks/kio/-/commit/38b7b483ccb7e4d1cf94e38d12130cfb8161c333
on GNU/Linux.

ADDITIONAL INFORMATION
The issue is once again the use of QCoreApplication::applicationDirPath(), which is /usr/bin for system binaries.
Comment 1 Kevin Kofler 2020-06-18 13:31:26 UTC
Downstream bug (correct link):
https://bugzilla.redhat.com/show_bug.cgi?id=1848491