From kde-core-devel Thu Feb 19 20:27:43 2009 From: Alexander Neundorf Date: Thu, 19 Feb 2009 20:27:43 +0000 To: kde-core-devel Subject: Re: requiring .desktop files to be executable ? Message-Id: <200902192127.43825.neundorf () kde ! org> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=123507536718953 On Thursday 19 February 2009, R.F. Pels wrote: > On Thu 19 February 2009 12.44.23 David Faure wrote: > > OK, with both conditions it doesn't break the case of a FAT partition > > (where everything is owned by root *and* writable by the user). > > > > So we arrive at the following whitelist: > > * x-bit is set > > * in a standard path (xdgdata-apps, apps, services) (*) > > * owned by root and not writable by user > > > > (*) I guess we should not add the Autostart folder to it, to protect > > the user from "save this file into your autostart folder", although, > > well, that would be a rather suspicious instruction in the first > > place... > > hash-bang line? And what flashed through my brain was the idea of Something like #!/usr/bin/env kde-open or #!/usr/bin/env xdg-open should work I think. Alex