#!/bin/bash

mkdir $HOME/virtual-drives/

OPENFILE=`cat $HOME/acetonesm`
rm $HOME/acetonesm



if test ! -e /usr/share/acetoneiso2/bin/poweriso
then

kdialog --caption "AcetoneISO2" --error "Sorry, please run 'compatibility' test in the main program to download poweriso"
exit
else
echo continua
fi

VAROUT=`kdialog --icon /usr/share/pixmaps/aiso2.png --caption "Select Folder where the ISO will be extracted" --getexistingdirectory $HOME/ `

if test -z $VAROUT
then
exit
else

konsole --noclose -e /usr/share/acetoneiso2/bin/poweriso extract "$OPENFILE" / -od "$VAROUT"

konqueror "$VAROUT"
fi

exit