summaryrefslogtreecommitdiffstats
path: root/kde/post-install
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2017-07-18 10:45:31 +0200
committer Eric Hameleers <alien@slackware.com>2017-07-18 10:45:31 +0200
commitdf702e24198288a7ba486f982ae2b8291ab39888 (patch)
tree2bb9eeaa706ee1d5fbe2b947def8af453f962444 /kde/post-install
parent39f6996b805464654b57f1ad51e99481b7b87377 (diff)
downloadktown-df702e24198288a7ba486f982ae2b8291ab39888.tar.gz
ktown-df702e24198288a7ba486f982ae2b8291ab39888.tar.xz
Proper differentiation between kdesu for KF5 and for kdelibs4
Rename the symlink for the kdelibs4 based kdesu to 'kdesu4', and let the 'kdesu' symlink in the $PATH point to the KF5 version instead.
Diffstat (limited to 'kde/post-install')
-rw-r--r--kde/post-install/kde-runtime.post-install2
-rw-r--r--kde/post-install/kdesu.post-install4
2 files changed, 5 insertions, 1 deletions
diff --git a/kde/post-install/kde-runtime.post-install b/kde/post-install/kde-runtime.post-install
index fbdacfa..f138174 100644
--- a/kde/post-install/kde-runtime.post-install
+++ b/kde/post-install/kde-runtime.post-install
@@ -1,5 +1,5 @@
# Create a symlink in /usr/bin to the kdesu binary
-( cd $PKG/usr/bin ; ln -s /usr/lib${LIBDIRSUFFIX}/kde4/libexec/kdesu . )
+( cd $PKG/usr/bin ; ln -s /usr/lib${LIBDIRSUFFIX}/kde4/libexec/kdesu kdesu4 )
# Remove the hicolor icon theme index.theme so it doesn't clobber the real one
rm -f $PKG/usr/share/icons/hicolor/index.theme
diff --git a/kde/post-install/kdesu.post-install b/kde/post-install/kdesu.post-install
new file mode 100644
index 0000000..52402f5
--- /dev/null
+++ b/kde/post-install/kdesu.post-install
@@ -0,0 +1,4 @@
+# Create a symlink in /usr/bin to the KF5 kdesu binary
+mkdir -p $PKG/usr/bin
+( cd $PKG/usr/bin ; ln -s /usr/lib${LIBDIRSUFFIX}/kf5/kdesu kdesu )
+