#!/bin/sh

echo_mime () {
	printf "$i;";
}

MIMETYPES=`grep -v ^# $1`
printf MimeType=;
for i in $MIMETYPES ; do
	echo_mime;
done

echo ""
echo ""
echo "Actions=Play;Previous;Next;"
echo ""
echo "[Desktop Action Play]"
echo "Exec=parole --play"
echo "Name=Play/Pause"
echo "Icon=media-playback-start-symbolic"
echo ""
echo "[Desktop Action Previous]"
echo "Exec=parole --previous"
echo "Name=Previous Track"
echo "Icon=media-skip-backward-symbolic"
echo ""
echo "[Desktop Action Next]"
echo "Exec=parole --next"
echo "Name=Next Track"
echo "Icon=media-skip-forward-symbolic"
echo ""
