sh-bang line for desktop entry files
Posted Feb 12, 2009 16:58 UTC (Thu) by
nedu (guest, #50951)
In reply to:
How to write a Linux virus in 5 easy steps by nix
Parent article:
How to write a Linux virus in 5 easy steps
Why don't desktop files start
#!/usr/bin/desktop-interpreter
... of course it's an fdo standard ...
The FDO Desktop Entry spec provides that comments may begin with a hash. So beginning with a sh-bang line shouldn't be a problem for existing Gnome or KDE environments.
Desktop Entry Specification: Comments
Lines beginning with a # and blank lines are considered comments and will be ignored, however they should be preserved across reads and writes of the desktop entry file.
Of course, just 'cause the FDO “standard” sez something, doesn't mean that implementations actually do that. But, at least, my version of Nautilus doesn't choke on hash-marked comments.
(
Log in to post comments)