slitaz-tools rev 914

fix tazbox su
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Wed Nov 05 20:33:38 2014 +0200 (2014-11-05)
parents 5b758077efec
children 06859ee40400
files tazbox/tazbox
line diff
     1.1 --- a/tazbox/tazbox	Wed Nov 05 19:04:12 2014 +0200
     1.2 +++ b/tazbox/tazbox	Wed Nov 05 20:33:38 2014 +0200
     1.3 @@ -554,7 +554,7 @@
     1.4  			cat /dev/null > $HOME/.config/slitaz/subox.conf
     1.5  		fi
     1.6  		# Try to login & execute. If password is wrong execute error dialog
     1.7 -		SU_CMD_QUOTED="$(echo "dbus-launch $SU_CMD" --exit-with-session | sed 's|&|\\&|g')"
     1.8 +		SU_CMD_QUOTED="$(echo "dbus-launch --exit-with-session $SU_CMD" | sed 's|&|\\&|g')"
     1.9  		echo $main | cut -f 1 -d "|" | su -c "$SU_CMD_QUOTED &" || su_error ;;
    1.10  	logout)
    1.11  		# Logout window with actions