#!/bin/bash

ruta=`dirname "$0"`
cd $ruta

case $LANG in
	es*)
		TEXT1="¡Cuidado! \nEste script forzará el cierre del gestor de escritorio y de \nmuchos otros programas que trabajan de fondo \ny que dejarán de funcionar temporalmente hasta que reinicie \nel sistema o los inicie manualmente. \n\n¿Seguro que desea continuar?"
		TIT1="¿Continuar?"
	;;
	gl*)
		TEXT1="Coidado! \nEste script forzará o peche do xestor de escritorio e de \nmoitos outros programas que traballan de fondo e que \ndeixarán de funcionar temporalmente ata que reinicie \no sistema ou os inicie manualmente. \n\nTen certeza de que desexa continuar?"
		TIT1="Continuar?"
	;;
	*)
		TEXT1="Be Careful! \nThis script will force desktop manager to close as well as many others programs running in the background. \nThey'll stop working temporaly until the system restarts or you manually run them. \n\nDo you really want to continue?"
		TIT1="Continue?"
	;;
esac


zenity --question --title="$TIT1" --text="$TEXT1"
if [ $? != "0" ];then
	exit 0
fi


	gksudo "x-terminal-emulator -e sh -c $ruta/terminator"

fi
