#!/bin/bash set -e TEXTDOMAIN="zero-center-basic" export TEXTDOMAIN # VALUES FILESTOSAVE=".bashrc" MSGALERT="$(gettext "ALERT! This action cleans GNOME configuration, some programs (like Evolution or Nautilus) store some data in the directories will be deleted, and the default settings will be applied in next session")" MSGACCEPT="$(gettext "Yes, I am sure")" MSGCANCEL="$(gettext "No")" MSGOK="$(gettext "All ok, please close this session and restart GDM")" if $(zenity --question --text="$MSGALERT" --ok-label="$MSGACCEPT" --cancel-label="$MSGCANCEL") ; then cd $HOME rm -rf .gnome* if [ test -e /usr/bin/llx-gnome-profile-manager ];then llx-gnome-profile-manager --reset else rm -rf .gconf fi zenity --info --text="$MSGOK" fi exit 0