[MPlayer-dev-eng] [PATCH] Fix for mplayer desktop file

andrew andrew.david.45 at gmail.com
Thu Mar 27 03:08:03 CET 2008


On Thu, Mar 27, 2008 at 02:19:22AM +0100, Diego Biurrun wrote:
> On Thu, Mar 27, 2008 at 11:45:23AM +1100, andrew wrote:

> > --- etc/mplayer.desktop	(revision 26271)
> > +++ etc/mplayer.desktop	(working copy)
> > @@ -10,7 +10,7 @@
> >  TryExec=gmplayer
> > -Exec=gmplayer %U
> > +Exec=gmplayer %F
> 
> According to the standard these are not the same thing:
> http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html
> 
> %F  A list of files. Use for apps that can open several local files at
>     once. Each file is passed as a separate argument to the executable
>     program.
> 
> %U  A list of URLs. Each URL is passed as a separate argument to the
>     executable program. Local files may either be passed as file: URLs
>     or as file path.

Although %F opens urls quite successfully on my system I note the
'optional' part from the same page:

"The Exec key must contain a command line. A command line consists of
an executable program optionally followed by one or more arguments."

I found that omission of both %F and %U made no difference on my
system and I have changed the patch to reflect this.

   Andrew Strong 

-- 
http://www.andrews-corner.org
-------------- next part --------------
Index: etc/mplayer.desktop
===================================================================
--- etc/mplayer.desktop	(revision 26271)
+++ etc/mplayer.desktop	(working copy)
@@ -10,7 +10,7 @@
 Comment[it]=Lettore multimediale
 Icon=mplayer.xpm
 TryExec=gmplayer
-Exec=gmplayer %U
+Exec=gmplayer
 Terminal=false
 Categories=GTK;AudioVideo;Audio;Video;Player;TV;
 MimeType=application/ogg;application/x-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;


More information about the MPlayer-dev-eng mailing list