From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.7-pre3.asl i686)
Description of problem:
If you *inadvertantly* try xdvi on a file with extension'tex' it launches
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. create a file named 'something.tex' [contents don't matter apparently,
try mv core core.tex]
2. xdvi something.tex
Actual Results: msg: Could not open dvi file. Exiting. [That's OK, its not
a dvi file ]
Then Netscape opens with "couldn't find file 'something.tex'
Expected Results: Just the error msg., please.
This is hilarious, but it had me questioning my sanity.
Something in mime-types or mailcap, maybe? Same results under KDE/Gnome.
If it's an enhancement to xdvi, please un-enhance.
[I know: Doctor it hurts when I...Don't do that]
It's no enhancement. :-)
Looks like a bug in the MIME handling, along with a couple of incorrect
settings in the default texmf.cnf.
Created attachment 30694 [details]
Here is a part of the solution. But xdvi tries a browser as a last resort for MIME types it doesn't know anyway.
I think this is (for some reason) intentional behaviour, judging from the code.