I have a file to download with .hede extension. How can I force Firefox to open it with a script located in /usr/bin? This *.hede file contains text.
I have a file to download with .hede extension. How can I force Firefox
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From apache you can’t tell a browser how to handle a certain type of file, unless it’s some commonly used mime-type/application mapping. Your best bet may be to create yourself a mime-type by using
AddType, something like:When someone uses something like Firefox to open your file with the hede extension, they’ll get a window that asks how they should handle the
application/hedemime-type, they can then browse and select the script located in /usr/bin.