Bug 423157 - KF5 KIO runs /usr/bin/kioexec instead of /usr/libexec/kf5/kioexec
Summary: KF5 KIO runs /usr/bin/kioexec instead of /usr/libexec/kf5/kioexec
Status: REPORTED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: git master
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-18 13:30 UTC by Kevin Kofler
Modified: 2020-06-24 09:17 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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