[MPlayer-users] Gmplayer cannot open files

Charles philip Chan cpchan at sympatico.ca
Thu Feb 14 03:05:28 CET 2008

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"

Please file a bug report with your distro.

FWIW, here is a good tutorial on quoting:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 193 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20080213/3a422ced/attachment.pgp>

More information about the MPlayer-users mailing list