#!/bin/sh
#
# This script will uninstall Microsoft hearts from your system after using the
# mshearts.sh script
# This script needs to be run as root with 755 permission
#
# Authored by Bob Nelson  admin@stchman.com
#

script_name="mshearts_uninstall.sh"

# Script must run as root 
if [ $USER != "root" ]; then
	echo "You need to run this script as root."
	echo "Use 'sudo ./$script_name' then enter your password when prompted."
	exit 1
fi

# remove the Microsoft Hearts folder
sudo rm -r -f /opt/mshearts

# remove the symbolic link
sudo rm -f /usr/bin/mshearts

# remove the menu entry
sudo rm -f /usr/share/applications/mshearts.desktop


