On Tue, Sep 21, 2010 at 12:38, Luke Benstead <
kazade@xxxxxxxxx> wrote:
> I'm wondering if we need this dialog at all, surely we can code in a little
> bit of logic here. How about:
>
> If the file is executable and:
>
> 1. If the file is binary and the extension not associated to a program,
> attempt to run it
> or
> 2. If the file is text and has the #! line at the top, try to run it. Add
> "Run as a Program" and "Run as a Terminal Program" to the right click menu
> or
> 3. If the file is text, open it in the default editor and add "Run as a
> Program" and "Run as a Terminal Program" to the right click menu
>
> That way double clicking a file will do what the user expects most of the
> time, and give the option of alternative behaviour if necessary.
>
> Thoughts?
This may have security implications. What if the file is a malicious