.desktop file security adds shebang
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Michael Pyne wrotes: ( http://
> If the file is made executable automatically it is given a "#!/usr/bin/env
> xdg-open" header as well if it did not already have a #! header so that
> running the file from the command line will do the right thing.
The feature "runnig a .desktop file from command line" has nothing in common with the ".desktop file security". If you want to use the shebang for .desktop files, you have to use it in all .desktop files and to specify it in the Desktop Entry Specification. But the shebang mechanism is old style and not cross-plattform. What about using these files with the Windows CMD? You are able to execute windows executables from the command line although they are no native executables and although they have no shebang. So why don't do the same detection with desktop entries?
Implement this in order to fix this bug:
* Only set execution bit in order to activate an desktop entry (no shebang)
* Implement execution of desktop entries from command line
Thank you for taking the time to report this bug and helping to make Ubuntu better.
Is this bug reproducible with the latest Lucid packages ?
Tanks in advance.