#!/bin/bash


kdialog  --caption "AcetoneISO2" --msgbox "NOTE:This tool only works for normal DATA CD. It won't work with Audio CD and Game CopyProtected cd's"



VARIN=`kdialog --icon /usr/share/pixmaps/aiso2.png --caption "Select where to Save ISO and Name!" --getsavefilename $HOME/ "*.iso |ISO Image"`

if test -z $VARIN
then
exit
else
echo continua
fi
kdialog --caption "AcetoneISO2" --msgbox "Your ISO is getting created. The Konsole will close when finished\nYOU CAN SAFELY CLOSE THIS MESSAGE"& konsole -e dd if=/dev/cdrom of="$VARIN" bs=1024


if test -e "$VARIN"
then
kdialog --caption "AcetoneISO2" --msgbox "Process Completed"
else
kdialog --caption "AcetoneISO2" --error "AcetoneISO wasn't able to create ISO"
fi

