Bug 52941

Summary: 'xdvi filename.tex' launches Netscape
Product: [Retired] Red Hat Linux Reporter: pdenis2
Component: tetexAssignee: Tim Waugh <twaugh>
Status: CLOSED WONTFIX QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-09-03 13:26:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Here is a part of the solution. But xdvi tries a browser as a last resort for MIME types it doesn't know anyway. none

Description pdenis2 2001-08-31 04:28:13 UTC
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
Netscape.

Version-Release number of selected component (if applicable):
tetex-xdvi-1.0.7-15 tetex-1.0.7-15

How reproducible:
Always

Steps to Reproduce:
1. create a file named 'something.tex' [contents don't matter apparently,
try mv core core.tex]
2.  xdvi something.tex
3.
	

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.

Additional info:

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]

Comment 1 Tim Waugh 2001-09-03 12:45:42 UTC
It's no enhancement. :-)

Looks like a bug in the MIME handling, along with a couple of incorrect 
settings in the default texmf.cnf.


Comment 2 Tim Waugh 2001-09-03 13:26:15 UTC
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.

Comment 3 Tim Waugh 2001-09-26 13:04:17 UTC
I think this is (for some reason) intentional behaviour, judging from the code.