#!/bin/bash



kdialog  --caption "AcetoneISO2" --msgbox "WARNING!This operation may take some time depending on your file dimension"


OPENFILE=`kdialog --icon /usr/share/pixmaps/aiso2.png --caption "Select Image to be Decrypted" --getopenfilename $HOME/ "*.gpg |GPG ENCRYPTED IMAGE"`

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

konsole --workdir $HOME -e gpg "$OPENFILE"

if test -e "$OPENFILE"
then
kdialog --caption "AcetoneISO2" --msgbox "Image Succesfully Decrypted"
else
kdialog --caption "AcetoneISO2" --error "AcetoneISO2 wasn't able to decrypt image"

fi


exit
