making .desktop files executable
making .desktop files executable
Posted Feb 13, 2009 9:38 UTC (Fri) by DeletedUser32991 ((unknown), #32991)In reply to: Follow up: How to write a Linux virus by foo-bar
Parent article: Follow up: How to write a Linux virus
So how difficult can it be to fix this if you really wanted to? Desktop files would want to have a "#!"-line at the beginning before you mark them executable in order to ensure they don't happen to look like different things in other contexts. This would render them non-compliant with current spec (because comments need to start with "# "), but you could look at a few implementations to see if you get by with it. You also need a generic interpreter that works independent of the DE. Then you need to change the DEs to only honor executable desktop files.
All of this seems not too hard to implement if you really put your mind to it but ranting on and on about it is the real path to go.
All of this seems not too hard to implement if you really put your mind to it but ranting on and on about it is the real path to go.
