xt7-player_0.9.262-1_all.deb has a little bug with its menu file and also can have its desktop file improved.
I'm using Debian Sid.
/usr/share/menu/xt7-player has a missing "=" after "section". It should be like this:
- Code: Select all
?package(xt7-player):needs="X11" section="Applications/Video"\
title="xt7-player"\
command="/usr/bin/xt7-player.gambas"\
icon="/usr/share/pixmaps/xt7-player.png"
Also /usr/share/applications/xt7-player.desktop can be improved.
- "Encoding" category is deprecated (if you run "desktop-file-validate xt7-player.desktop", from the package desktop-file-utils in Debian, you get: "xt7-player.desktop: warning: key "Encoding" in group "Desktop Entry" is deprecated").
- According to http://standards.freedesktop.org/menu-s ... t/apa.html , "Video" category must come with "AudioVideo" too.
So I fixed these things, added the "MimeType" entry (copied from mplayer.desktop), added "GenericName" entry (some menus, like the one from Linux Mint, use that) and pt_BR (Brazilian Portuguese) entries.
- Code: Select all
[Desktop Entry]
Version=1.0
Name=Xt7-player
Name[pt_BR]=Xt7-player
GenericName=Multimedia player
GenericName[pt_BR]=Reprodutor multimídia
Comment=Xt7-Player, an (almost) complete mplayer gui
Comment[pt_BR]=Xt7-Player, uma interface gráfica para o MPlayer (quase) completa
Exec=/usr/bin/xt7-player.gambas
Icon=/usr/share/pixmaps/xt7-player.png
Terminal=false
Type=Application
StartupNotify=true
Categories=Qt;AudioVideo;Audio;Video;
MimeType=application/ogg;application/x-ogg;video/ogg;audio/ogg;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/m4a;audio/x-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/x-mpeg;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg;video/x-mpeg2;video/msvideo;video/x-msvideo;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/x-fli;video/x-theora;video/x-matroska;
After installation (or during istallation), the command "update-desktop-database" (from package "desktop-file-utils" in Debian) must be run so the mime types are put in the mimeinfo.cache file and can be read from the system.
