#!/bin/sh
if [ ! -f /usr/bin/lmms ]; then
	zenity --error --title="LMMS" --text="<b>LMMS not found</b>" --width 200 
	exit
fi
if pgrep lmms;
	then killall lmms
fi
rm -rf $HOME/.lmmsrc.xml
cp /usr/local/reset-settings/lmmsrc2.xml $HOME/.lmmsrc.xml
sed -i "s|user-home1|$HOME|g" $HOME/.lmmsrc.xml
zenity --info --title="LMMS" --text="<b>LMMS has been reset</b>" --width 250
