#!/bin/bash


if test -e $HOME/.acexists
then
exit
else
echo continua
fi

/usr/share/acetoneiso2/bin/compat
me1=`whoami`
if test -e /usr/bin/fuseiso
then
kdesu -n -d -i /usr/share/pixmaps/aiso2.png "chmod 4755 /usr/bin/fusermount;chmod o+rw /dev/fuse;addgroup $me1 fuse"
> $HOME/.acexists
exit
else
	if test -e /usr/local/bin/fuseiso
	then
	kdesu -n -d -i /usr/share/pixmaps/aiso2.png "chmod 4755 /usr/bin/fusermount;chmod o+rw /dev/fuse;addgroup $me1 fuse"
> $HOME/.acexists
	exit
	else

	kdialog --caption "AcetoneISO2" --error "Fuseiso is not installed in your system\nAcetoneISO will now attempt to install it. If something goes wrong please go under Help section"
	/usr/share/acetoneiso2/bin/actfuse
	
	fi

fi

