Package: firefox-esr
Version: 102.7.0esr-1
Severity: normal
Tags: patch

In contrast to the default PDF applications (Evince, Okular, ...) recent
versions of Firefox are able to handle PDF with XFA forms. To be able to
open such PDF files from the usual file managers (Nautilus, Dolphin,
...) the PDF mimetypes must be added to the Firefox desktop file.

The attached patch fixes this issue.


Best regards

Ronny Standtke
From 41a636c8686fd2b5aedb716d50032220db339890 Mon Sep 17 00:00:00 2001
From: Ronny Standtke <ronny.stand...@gmx.net>
Date: Fri, 10 Feb 2023 19:30:03 +0100
Subject: [PATCH] added PDF mimetypes to desktop file

---
 debian/browser.desktop.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/browser.desktop.in b/debian/browser.desktop.in
index 31dc44f0fc1..0a4ffebc48f 100644
--- a/debian/browser.desktop.in
+++ b/debian/browser.desktop.in
@@ -99,6 +99,6 @@ X-MultipleArgs=false
 Type=Application
 Icon=@browser@
 Categories=Network;WebBrowser;
-MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
+MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;application/pdf;application/x-bzpdf;application/x-ext-pdf;application/x-gzpdf;application/x-xzpdf;
 StartupWMClass=@MOZ_APP_REMOTINGNAME@
 StartupNotify=true
-- 
2.37.2

Reply via email to