[Desktop Entry] Encoding=UTF-8 Version=0.1 Type=Application Terminal=true Name=RandomVid Exec=/usr/bin/osso-xterm /etc/hildon-welcome.d/lalala.sh Icon=terminal #X-Window-Icon= X-Window-Icon= X-HildonDesk-ShowInToolbar=true X-Osso-Type=application/x-executable
chmod 755 /etc/hildon-welcome.d/lalala.sh
#!/bin/bash # determine number of files in /dconfs cd /etc/hildon-welcome.d/dconfs/ nof=$(ls *.conf | wc -l) # get random number rn=$(dd if=/dev/urandom count=1 2> /dev/null | cksum | cut -f1 -d" ") # in range of 1 - nof let "rr = $rn % $nof + 1" # choose random conf rf="$rr.conf" echo "$rr.conf" # copy it over to default.conf cp $rf ../default.conf # exit exit 0
lalala.sh
./lalala.sh
sh lalala.sh