summaryrefslogtreecommitdiffstats
path: root/linux-wbfs-manager
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2009-09-09 14:16:43 +0000
committer Eric Hameleers <alien@slackware.com>2009-09-09 14:16:43 +0000
commitfcdb726e9797000a3b0ad748a8d412ae3d1ec3c6 (patch)
tree555d2280b59335834549372349c8037ab09e5973 /linux-wbfs-manager
parent289517e34cfeca5648091d8260d2d112543f8a74 (diff)
downloadasb-fcdb726e9797000a3b0ad748a8d412ae3d1ec3c6.tar.gz
asb-fcdb726e9797000a3b0ad748a8d412ae3d1ec3c6.tar.xz
Only run kdesu for non-root
Diffstat (limited to 'linux-wbfs-manager')
-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