making .desktop files executable
making .desktop files executable
Posted Feb 13, 2009 12:36 UTC (Fri) by bluss (guest, #47454)In reply to: making .desktop files executable by DeletedUser32991
Parent article: Follow up: How to write a Linux virus
If # are comments in the spec, that means we can introduce a format upgrade where a shebang line (#!/usr/bin/desktop-launcher) is required, and older implementations will treat it as a comment. Then slowly distributions can enforce the executable + shebang requirement.
It is actually very easy: Introduce the new format, and require it. Then handle backward-compatibility by throwing a warning when double-clicking old-style desktop files, with the option to mark it executable and add the shebang ("Do you truth this launcher? Items downloaded from iternet... It will run '/bin/binary'..", "[ ] don't ask me again", "Cancel", "Launch")
