#!/bin/ash
#sleep 4
#xsri --scale-width=100 --scale-height=100 --set /usr/share/backgrounds/default.jpg &
#exit
#171129 sfs
if [ -f /usr/share/backgrounds/default.jpg ] ;then
[ "`pidof rox spacefm pcmanfm xfdesktop nautilus caja`" ] ||	xsri --scale-width=100 --scale-height=100 --set /usr/share/backgrounds/default.jpg  &
else
# if [ "$1" = "-d" ] ;then
#    for i in `ls "$2"/*.[jp][pn]g` ;do
    for i in `ls /usr/share/backgrounds/*.[jp][pn]g` ;do
#	ntf -i "$i " &
	xsri --scale-width=100 --scale-height=100 --set "$i" && break
#	read
    done
# fi
fi
#xsri --color="#1D316B" --color2="#000000" --hgradient --emblem=/usr/share/xpupsay/puppyLOGO31.png    --center-x --center-y   &   
#xsri --color="#1D316B" --color2="#000000" --hgradient --emblem=/usr/share/backgrounds/VindyEkkhere.jpg    --center-x --center-y  --emblem-alpha=80 &   
