Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 01-13-2008, 11:30 AM   #1
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Firefox: Treating *.sh files (shell scripts) as plain/text

This is not a pure GNU/Linux question, but I'm not finding an answer online.

I'm using Firefox. When I select a file with an *.sh extension, FF prompts me what to do with the file. There is no option to simply open in the browser as a text file. I posted the same question at the Mozilla forums and received only one response --- to install an extension.

I'm thinking there should be a way to modify FF at the configuration level to treat *.sh files as text/plain. Is there a way to configure FF to treat files with the *.sh extension (shell scripts) as a text file and open directly in FF?

FWIW, files with no extension are treated as text files. I'm guessing FF programmatically keys off the extension to open the prompt box rather than just display the file.

K-Meleon (Windows) has this same issue. Opera provides a straightforward way to treat *.sh files as text/plain. FF provides no straightforward way to modify mimetypes.

Old 01-13-2008, 02:34 PM   #2
Registered: May 2007
Location: CO
Distribution: Ubuntu
Posts: 152
Blog Entries: 1

Rep: Reputation: 18
How about Edit-> Preferences and under Content click manage file types?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Transform plain text files into Web pages automatically with this ... LXer Syndicated Linux News 0 01-08-2007 08:54 PM
how to use shell scripts for sorting files New2Linux06 Linux - Newbie 4 10-30-2006 09:02 AM
handling multiple files in shell scripts. wilsonsamm Linux - General 7 07-05-2006 07:36 PM
I'm terrible at writing shell scripts. A little help fetching files? ashibaka Linux - General 6 04-10-2004 01:41 AM
Editing files from shell scripts? SirRobbin Linux - Newbie 6 03-23-2004 11:27 AM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration