1XDGAUTOSTART=/etc/xdg/autostart
2if [ -d $XDGAUTOSTART ]; then
3    for SCRIPT in $XDGAUTOSTART/*; do
4        CMD=`grep ^Exec= $SCRIPT | cut -d '=' -f 2`
5        $CMD &
6    done
7fi
8