LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Nautilus Always Run Certain File Extension as an Application (http://www.linuxquestions.org/questions/linux-software-2/nautilus-always-run-certain-file-extension-as-an-application-855739/)

Jeff91 01-11-2011 10:53 PM

Nautilus Always Run Certain File Extension as an Application
 
I was wondering if it is possible to have the nautilus file manager always treat files ending in a certain extension as an executable program without:

a.) Having to chmod +x the file to make it executable

and

b.) Having to select "run" from the four options nautilus normally presents when double clicking on a script

Is this possible? In short - I'd like to simply be able to double click on any file that ends in a certain extension and have it simply run.

Regards,
~Jeff

David the H. 01-12-2011 12:13 AM

As for a), no. Permissions are a function of the underlying *nix OS, not a file manager option. And why would you want that anyway? Talk about a security hole.

For b), I don't know. That depends on how Nautilus handles it's file associations. Most file managers work by mime-type, though, rather than filename, so probably not. And this is as it should be, because filename extensions are a terrible thing to rely on when determining what a file actually is, and *nix doesn't generally do that.


All times are GMT -5. The time now is 10:55 AM.