Bug 1613565

Summary: Firefox will not open files in external applications
Product: Red Hat Enterprise Linux 6 Reporter: Andrew Mike <amike>
Component: firefoxAssignee: Jan Horak <jhorak>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.10CC: alanm, jhorak, jwright, mkolbas, pbhoot, rmy, stransky, tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-27 09:48:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andrew Mike 2018-08-07 21:30:49 UTC
Description of problem:
When opening files from a URL, Firefox will not try to open it in an external application.

Version-Release number of selected component (if applicable):
firefox 60.1.0-6

How reproducible:
Consistently, on a RHEL 6.10 system with a GUI installed per https://access.redhat.com/solutions/5238.

Steps to Reproduce:
1.Open Firefox. 
2. Set pdfjs.disabled = true in about:config.
3. Open a PDF in a URL (like https://www.gutenberg.org/files/11/11-pdf.pdf).

Actual results:
The file is immediately downloaded. When the folder icon in the download pop-up is clicked, instead of Nautilus appearing, the "Launch Application" window is shown.

Expected results:
The file open dialog box should pop up and ask whether to open the PDF in evince or download it. When the folder icon in the download pop-up is clicked, the Nautilus window for the download folder should be displayed.

Additional info:

Comment 2 Ron Yorston 2018-08-13 10:02:43 UTC
Possibly related: https://bugs.centos.org/view.php?id=15113 'Firefox is unable to determine how to open Word documents'

Comment 3 Jan Horak 2018-08-20 13:26:06 UTC
There's is a fix for this by changing XDG_DATA_DIRS in /usr/bin/firefox to:
export XDG_DATA_DIRS="$MOZ_LIB_DIR/firefox/bundled/share:/usr/share"