# script must be run as root, first check for and exit if not
# then resquash the users' new fs
if[`/usr/bin/whoami`='root'];then
WORK=$1
dcop --all-users amarok playlist popupMessage "The music that you added is now being squashed and added to the livecd. Please be VERY patient as this step can take a LONG time."
# Let's test for the presence of k3b, and if it is there load it up
# and burn the cd iso right away. If k3b is not present, show a kde
# dialog telling the user where the iso is.
which k3b
if[[$?==0]];then
k3b --cdimage $WORK/Amarok.live.custom.iso
else
kdialog --title "Amarok livecd remaster" --msgbox "Livecd creation is done. The new Amarok live image is in `pwd`, called Amarok.live.custom.iso. You can burn that with any standard burner and enjoy."
fi
kdialog --title "Amarok livecd remaster" --yesno "Do you want to make more cds later? If so, please click yes, and you can simply add more songs. If you are done, click no and the temporary files will be erased. You will need to rerun configure to make another cd."