.desktop file security

Vincent Untz vuntz at gnome.org
Tue Feb 24 06:35:41 PST 2009


Le mardi 24 février 2009, à 13:49 +0100, Alexander Larsson a écrit :
> On Tue, 2009-02-24 at 13:27 +0100, Alexander Larsson wrote:
> > 6. Make sure that launchers added to the Desktop and whatnot are marked
> > as executable.
> 
> This is actually kinda tricky. DnDing a launcher from the start menu or
> the panel in Gnome is just a regular copy operation of the source
> desktop file. We don't want the normal copy operation to rewrite and
> chmod a+x all desktop files in general, since people expect a standard
> copy of a filesystem tree to not modify any of the files.
> 
> I guess we can special case the case of a single .desktop file being
> copied to the desktop. Are there other similar cases that seem likely to
> happen in practice?

gnome-panel has some code to add a desktop file to the desktop from the
applications menu (without drag and drop). I guess some other apps might
have this too.

Setting the +x bit isn't hard, but adding some #! header is, hrm, not
fun... Oh well.

Vincent

-- 
Les gens heureux ne sont pas pressés.


More information about the xdg mailing list