The file should be named like gmplayer.desktop having content as below
[Desktop Entry]
Name=GMplayer
Comment=The Movie Player for Linux
Exec=gmplayer
Terminal=0
Type=Application
Categories=AudioVideo;Application;
Icon=gnome-mplayer.png
The location where these files are found are /usr/share/