[Slackbuilds-users] SMPlayer desktop file

Niklas "Nille" Åkerström nille.kungen at gmail.com
Sat Jul 16 21:58:04 UTC 2011


2011/7/13 Ozan Türkyılmaz <ozan.turkyilmaz at gmail.com>

> 2011/7/13 Erik Hanson <erik at slackbuilds.org>:
> > On Tue, 5 Jul 2011 21:59:01 -0500
> > Robby Workman <rworkman at slackbuilds.org> wrote:
> >
> >> > Exec=smplayer %U
> >> > Exec=smplayer -add-to-playlist %U
> >> >
> >> > respectively, which is I believe technically correct but has the
> >> > effect of failing to load files with spaces in their names and
> >> > unpredictably failing with other files as well when opened with
> >> > right mouse click and "Open with..." option or "Enqueue with..."
> >> > option. This can be fixed by altering the .desktop files to the
> >> > following:
> >
> > Does adding single or double quotes around %U have any effect?
> >
> >> > Exec=smplayer %f
> >> > Exec=smplayer -add-to-playlist %f
> >> >
> >> > which is technically not correct but fixes the problem. Upstream
> >> > developer has been more than a little quiet for a while so perhaps
> >> > it would be worthwhile patching the source? I personally have
> >> > simply made the changes to .desktop files in
> >> > $HOME/.local/share/applications but a more definitive change would
> >> > be nice :).
> >
> > Seems no one knows what the difference between %U and %f is, or at
> > least no one replied when I asked, and I am too lazy to find out.
>
> %U should be URL and %f should be file itself
>

This link will explain it fast and easy
http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#exec-variables

%U List of URL
%f Single file

/Nille
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20110716/3aeb2998/attachment.html>


More information about the SlackBuilds-users mailing list