LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-13-2008, 10:30 AM   #1
Woodsman
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.

Thanks.
 
Old 01-13-2008, 01:34 PM   #2
digerati1338
Member
 
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?
 
  


Reply



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 07:54 PM
how to use shell scripts for sorting files New2Linux06 Linux - Newbie 4 10-30-2006 08:02 AM
handling multiple files in shell scripts. wilsonsamm Linux - General 7 07-05-2006 06:36 PM
I'm terrible at writing shell scripts. A little help fetching files? ashibaka Linux - General 6 04-10-2004 12:41 AM
Editing files from shell scripts? SirRobbin Linux - Newbie 6 03-23-2004 10:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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

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