case $1 in
"-t")
cd /usr/share/envy
sudo python interface.py
;;
"-g")
if echo $KDE_FULL_SESSION | grep true
then
cd /usr/share/envy
kdesu -c "/usr/share/envy/gtkenvy.py $USER $HOME $UID --kde_desktop $1" -d
else
cd /usr/share/envy
gksudo --message "Please enter your admin password to start Envy" "/usr/share/envy/gtkenvy.py $USER $HOME $UID $1"
fi
;;
"--uninstall-all")
cd /usr/share/envy
sudo python pulse.py restore
;;
*)
echo "ERROR: you need to provide a parameter:"
echo ' "-t" for the textual interface'
echo ' "-g" for the GTK frontend'
echo ' "--uninstall-all" to completely remove what Envy has done'
;;
esac