Felix Miata wrote:
On 2009/03/25 09:18 (GMT-0500) David C. Rankin composed:
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?
Workaround: give file a symlink ending in .txt or .prn or with no filename extension.
The bigger question: why open in FF instead of mc or kwrite or emacs?
No, No, Guys, there's no question there, I have a bunch of c & c++ files in a directory on my website. The entire /downloads directory has +indexes set just so I can browse it as a directory, just like you browse http://download.opensuse.org/repositories/openSUSE:/Tools/openSUSE_11.1/x86_... to find a specific rpm. Forget mycols.cc for the moment, and let's just focus on text files regardless of whether it's a script, source file, csv export, whatever. When I click on a text file in Firefox, it ought to display the text file in the browser windows just like all browsers have done since the dawn of NCSA Mosaic. For some reason firefox won't do this. I don't want to open the file for editing either, I just want to display it in the browser window, so I can do a quick select of the code I want, then alt+tab and middle-click insert the text into kate or vi or whatever else I may be working with at the time. For example, go to: http://www.3111skyline.com/download/ the click on the webdev directory, the look at the short text file "cp3colTemplateFiles". Firefox opens that just fine. Now click 'back' in firefox and then choose "Parent Directory" and navigate to the directory "programming/c++/apps" and then try to click on the text file "viewmod_posix.cpp" and the damn Firefox save dialog pops back up. WTF?? Why can't I look at "viewmod_posix.cpp" the same way I just looked at "cp3colTemplateFiles"??? This is what I want to fix and I can't seem to outsmart firefox to make it work. Obviously Firefox isn't using the actual 'file' information to make a decision whether to open the file or not, so I must be using some time of extension scheme. How do I tell it that for '.c*', just display the dang file. It does it for a whole host of other text files. In download/linux/ati/ there are a number for files, xorg.confs, etc. and every text file in there opens right up in the browser.... There has to be a simple fix -- or an evil conspiracy somewhere... Thanks for any help you can give. -- 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