#!/bin/bash

OPENFILE=`kdialog --icon /usr/share/pixmaps/aiso2.png --caption "Select ISO File" --getopenfilename $HOME/ "*.iso |ISO File"`

if test -z $OPENFILE
then
exit
else
echo continua
fi


PLAYER2=`kdialog --icon /usr/share/pixmaps/aiso2.png --caption "AcetoneISO2" --combobox "Select Speed ex. 4x,8x :" "4" "8" "10" "12" "16" "24" "32" "40"`

if test -z $PLAYER2
then 
exit
else
echo continua
fi


konsole -e cdrecord -v dev=cdrom speed=$PLAYER2 driveropts=burnfree -dao -eject "$OPENFILE"

kdialog --caption "AcetoneISO2" --msgbox "Process Completed"

exit
