#!/bin/bash
MYPROFILE=`zenity --width=400  --title="choose sound profile to restore" --file-selection --filename=/var/lib/groovix/alsa/`
/usr/bin/groovix-sound-card-restore $MYPROFILE
if [ $? -ne 0 ] ; then
	zenity  --width=400 --error --title "sound settings not restored" --text "error while restoring sound profile $MYPROFILE"
else
	zenity --width=400  --info --title "sound settings restored" --text "$MYPROFILE restored successfully"
fi
