Randall R Schulz wrote:
On Wednesday March 25 2009, David C. Rankin wrote:
List,
Firefox is outsmarting itself again. I want to open a simple text file (c++ source file) named mycols.cc. When I click on it in Firefox, it asks me to open in emacs, or save, etc. If I set the helper application for c++ files to firefox, firefox blows up trying to open the file when it goes into a loop and tries to open 1000 tabs. So, what's the trick? Wolfgang?
I have, from time to time, by Firefox's refusal to open a file I knew to be plain text but whose associated MIME type (explicitly indicated by the server supplying the data or inferred by Firefox based on its own notions) did not indicate that the contents were text.
Reading your post brought an idea to mind.
Open the URI "about:config" in your Firefox and type MIME into the filter. I see some hopeful things, namely these two:
helpers.global_mime_types_file /etc/mime.types helpers.private_mime_types_file ~/.mime.types
I looked at /etc/mime.types and found the suffix "cc" there associated with the MIME type "text/x-c++src":
text/x-c++src cpp cxx cc C c++
So I created ~/.mime.types containing this single line:
text/plain cpp cxx cc C c++
Now when I send Firefox a local file URI for a .cc file, it just opens it and displays its text.
Thank you for making me think about this!
Randall Schulz
Thank you for thinking about it;-) -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org