PATCH: mshtml: Register PDF MIME type.

Marcus Meissner meissner at suse.de
Fri Feb 17 11:06:09 CST 2012


As Johannes is not subscribed he asked me to mail it in.

From: Johannes Obermayr <johannesobermayr at gmx.de>
Subject: [PATCH] mshtml: Register PDF MIME type.

This fixes an error by which ElsterFormular cannot make use of the default PDF viewer (e. g. Okular) but wants to have installed for example Windows versions of a PDF viewer (e. g. Foxit or SumatraPDF).

This implementation is based on http://wiki.ubuntuusers.de/ElsterFormular#Den-in-Linux-installierten-PDF-Reader-mit-wine-registrieren.

Fixes: http://bugs.winehq.org/show_bug.cgi?id=29916
Signed-off-by: Johannes Obermayr <johannesobermayr at gmx.de>
Tested-by: Johannes Obermayr <johannesobermayr at gmx.de>
---
 dlls/mshtml/mshtml.inf |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/mshtml/mshtml.inf b/dlls/mshtml/mshtml.inf
index 8186c2d..d24cfaf 100644
--- a/dlls/mshtml/mshtml.inf
+++ b/dlls/mshtml/mshtml.inf
@@ -211,6 +211,12 @@ HKCR,".mpe","Content Type",,"video/mpeg"
 HKCR,".mpeg","Content Type",,"video/mpeg"
 HKCR,".mpg","Content Type",,"video/mpeg"
 
+;; PDF
+HKCR,"MIME\Database\Content Type\application/pdf","Extension",,".pdf"
+HKCR,".pdf",,2,"pdffile"
+HKCR,".pdf","Content Type",,"application/pdf"
+HKCR,"pdffile\shell\open\command",,,"winebrowser ""%%1"""
+
 ;; PJPG
 HKCR,"MIME\Database\Content Type\image/pjpeg","CLSID",,"%CLSID_HTMLDocument%"
 HKCR,"MIME\Database\Content Type\image/pjpeg","Extension",,".jpg"
-- 
1.7.7




More information about the wine-patches mailing list