summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlinux-wbfs-manager/build/linux-wbfs-manager.SlackBuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/linux-wbfs-manager/build/linux-wbfs-manager.SlackBuild b/linux-wbfs-manager/build/linux-wbfs-manager.SlackBuild
index 31985451..489fad66 100755
--- a/linux-wbfs-manager/build/linux-wbfs-manager.SlackBuild
+++ b/linux-wbfs-manager/build/linux-wbfs-manager.SlackBuild
@@ -136,12 +136,15 @@ make 2>&1 | tee $OUTPUT/make-${PRGNAM}.log
mkdir -p $PKG/usr/bin $PKG/usr/share/{applications,pixmaps}
install -g root -m0755 wbfs_gtk $PKG/usr/bin/wbfs_gtk
install -g root -m0644 $SRCDIR/wii.svg $PKG/usr/share/pixmaps/wii.svg
+
+# Check writability of /etc/passwd file to determine if kdesu needs to run
+# (root does not need kdesu):
cat <<EOT > $PKG/usr/share/applications/wbfs_gtk.desktop
[Desktop Entry]
Encoding=UTF-8
Terminal=false
Type=Application
-Exec=kdesu wbfs_gtk
+Exec=kdesu -i wii -f /etc/passwd wbfs_gtk
Name=WBFS Gui
GenericName=Wii Backup FS manager
Comment=Manage content on a Wii Backup Filesystem