Hi,

2012-04-15 13:20, Petr Baudis skrev:
>   Hi!
> 
> On Sat, Apr 14, 2012 at 11:47:26PM +0200, Per Olofsson wrote:
>> No, I think it would be a security risk if xdg-open supported that.
>> xdg-open is often used by browsers to open downloaded files, and in that
>> case would execute arbitrary code when invoked on a desktop file.
> 
>   Thanks for the info, that makes sense too. What is the canonical
> way to execute a .desktop file then?

The canonical way is to implement the desktop entry specification:

http://standards.freedesktop.org/desktop-entry-spec/latest/

AFAIK there is no command line tool for that. There is code in xdg-open
and mimeopen which launches desktop files in standard "applications"
directories (like /usr/share/applications/) to open the associated
program for a file, but there is no option to use it on an arbitrary
desktop file.

> Shouldn't the xdg-utils provide
> a different tool for this purpose?

I don't know -- what's the use case?

You could file an upstream wishlist bug for that.

-- 
Pelle



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to