2016.02.04 16:45, Josef Reidinger rašė:
On Thu, 4 Feb 2016 15:36:59 +0100
Josef Reidinger <[email protected]> wrote:


So my question is how other desktop files do it? I do not believe that
each desktop file have command line wrapper, that handle special
characters. I propose to use common solution rather then creating own
one that we have to maintain.
I will answer myself, that they just passed %F and according to
specification
http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#exec-variables
the %F is 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.

So if it is not escaped, it is for me problem of program that
interpret desktop files itself as example on that page also use just %F
http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#example

As Martin Vidner, author of script is on this mailing list I will let
him to also comment it.

Josef


So yes, I totally agree, that perfect solution is
1) fix `/sbin/yast2 sw_single` to accept multiple files with spaces as arguments 2) also add in https://github.com/yast/yast-packager/blob/master/src/desktop/sw_single.desktop
 xdg-su -c "/sbin/yast2 sw_single %F"
 MimeType=application/x-rpm;


--
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to