On Thu, 4 Feb 2016 17:01:04 +0200
"opensuse.lietuviu.kalba"
2016.02.04 16:45, Josef Reidinger rašė:
On Thu, 4 Feb 2016 15:36:59 +0100 Josef Reidinger
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-lates... 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-lates...
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.desk...
xdg-su -c "/sbin/yast2 sw_single %F" MimeType=application/x-rpm;
Hmm, it is actually there: https://github.com/yast/yast-packager/blob/master/desktop/yast2-packager.des... Problem looks like line NotShowIn=KDE;GNOME;MATE; I will investigate it tomorrow. -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org