[MPlayer-users] Gmplayer cannot open files

andrew andrew.david.45 at gmail.com
Thu Feb 14 03:46:45 CET 2008


On Wed, Feb 13, 2008 at 09:05:28PM -0500, Charles philip Chan wrote:
> andrew <andrew.david.45 at gmail.com> writes:
> 
> > The Gui gmplayer cannot open files with spaces in the filename or
> > spaces in the path to the file. A widely reported workaround is to
> > change handling of file from URL to File. Editing:
> > /usr/local/share/applications/mplayer.desktop
> > to replace:
> > Exec=gmplayer %U
> > with this:
> > Exec=gmplayer %F
> 
> This is not a bug in mplayer, but the desktop file- the file name needs
> to be quoted or escaped because the shell relies on the space to
> destingish between file names. In this case the correct syntax is:
> 
> ,----
> | Exec=mplayer "%U"
> `----

Thanks for your prompt reply Charles (and for the correction to
'g'mplayer of the above). I have tried the following combinations:

Exec=gmplayer "%U"
Exec=gmplayer "%F"
Exec=gmplayer %F
Exec=gmplayer %U

and the only one that works with spaces in filenames / pathnames is 

Exec=gmplayer %F. 

I am not complaining, as I am pleased to see it all working, but I am
a little puzzled as to /why/ it is working :-) This cannot be
reproduced at your end?

Thanks for your trouble,

   Andrew

-- 
http://www.andrews-corner.org



More information about the MPlayer-users mailing list