"Name" key value in desk. entry spec collides with file names, could misguide users?

Lars Hallberg spam at micropp.se
Wed Mar 16 02:22:51 EET 2005

Dave Cridland wrote:

> Okay, seriously, I like Waldo's notion of +x required on .desktop 
> files. My questions, and suggested answers:

Yes, that is good. Togheter with not alowing dots in the name, so an 
'app' can't call itself 'boobs.jpg' will help allot!

> What happens if they're actually executed? Currently, they're treated 
> as a shell script.
> Could this potentially cause damage? [I think so. Especially where a 
> line is of the form Var=Val valid-command [args]]
> Should we prepend an interpreter line? [Yes, ideally.]
> What should it do? [#!/usr/bin/env xdg-exec - a script which may or 
> may not exist, but if it does, it does whatever the 
> adminstrator/distribution thought sensible.]
> A rough test of adding #!/usr/bin/env xdg-exec as the first line of a 
> chmod u+x'd desktop file appeared to suggest that it was safe, and 
> worked with existing .desktop file stuff.

Good. Vill have the added benefit that a .desktop file can be started 
direktly from CLI or from a non .desktop avere filebrowser. Briliant!


More information about the xdg mailing list