LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-11-2012, 10:39 AM   #1
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
How to get Firefox to display a text file?


Here is a simple file URL:

http://sdl-sparks.googlecode.com/hg-...dl/audio-sdl.c

My question is, how can I configured Firefox so that displaying this file directly in the browser is one of the choices? Currently it pops up a choice to let me download it, or display it in gedit. But I just want it to display in the browser.

Apparently the HTTP disposition parameter is doing this. I can accept that it will cause a pop-up, although that is annoying. And I know FIrefox is fully capable of displaying the file because in other cases it does display code like this just fine.

But this is kind of like Firefox obeying some external rules without any means for user overrides. If it can do it, why not let me choose to have it do it? Why is Firefox limiting this?
 
Old 02-11-2012, 11:18 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
rename the file to
Code:
audio-sdl.c.txt
Kind regards
 
Old 02-12-2012, 03:32 AM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
It's due to a couple of long-standing bugs in FF. Apparently the devs don't think it's important enough to address them or something.

Get the Open In Browser extension, and you can tell FF to redirect the file back to the browser for display.

http://spasche.net/openinbrowser/

Or else save a local copy and open that.
 
Old 02-14-2012, 12:15 AM   #4
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by repo View Post
rename the file to
Code:
audio-sdl.c.txt
Kind regards
That requires saving the file first. The whole idea was to avoid these extra steps and just have the browser display it. But, as it turns out, FF has bugs that just don't get fixed.
 
  


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
Problem in read a text file and display in DOS command... steve2688 Programming 7 06-17-2009 03:04 AM
how to display text file contents in Xdialog's radiolist or menubox kkpal Linux - Newbie 0 09-09-2008 02:18 AM
SED - display text on specific line of text file 3saul Linux - Software 3 12-29-2005 04:32 PM
Display a text file from hard drive into a web page EgosZ Linux - Networking 6 04-04-2005 10:51 PM
Display/Read line 'N' in a text file using script ganninu Linux - Newbie 2 10-13-2003 05:28 AM

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

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

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