Hi,
since both KDE upstream and the Fedora KDE SIG refuse to fix the regression
that Dolphin, KWrite, and Kate can no longer be run as root, I have decided
to write a small metapackage that automatically applies the binary patch to
fix the issue.
The patch that is applied is the 's/getuid/getpid/g' hack, see:
https://www.spinics.net/linux/fedora/fedora-kde/msg19018.html
for an explanation of how it works.
The patched executables are written to /usr/local/bin. The metapackage uses
file triggers so that the patched version is automatically updated when the
original copy in /usr/bin is updated from the system package. While it would
be possible in principle with this method to apply the patches in place in
/usr/bin, I have decided against it, for 2 reasons:
1. integrity checks such as rpm -Va would fail on the patched executables,
and
2. delta RPMs would fail because the original RPM could not be
reconstructed.
Writing the patched executables to a different directory avoids this issue.
After installing this package, e.g., "kdesu kwrite" should just work again.
You can get the package from the Kannolo Copr:
https://copr.fedorainfracloud.org/coprs/kkofler/kannolo/
Source code:
https://svn.calcforge.org/viewvc/kannolo/trunk/packages/kannolo-root-unlo...
Direct package link:
https://copr.fedorainfracloud.org/coprs/kkofler/kannolo/package/kannolo-r...
Enjoy!
Kevin