Package: okular
Version: 4:4.4.5-2
Severity: normal
Tags: patch

Attempting to open an .xps file with okular fails with the okular error
messages "Could not open file:///filename.xps" and "Can not find a plugin which
is able to handle the document being passed".  This appears to be due to the
KDE library code identifying the document as an "application/oxps (accuracy
100)" file (via 'kmimetypefinder'), but the okular XPS plugin configuration
file /usr/share/kde4/services/libokularGenerator_xps.desktop.backup only notes
a different MIME type, "application/vnd.ms-xpsdocument".

Also note the Fedora bug 643833:
https://bugzilla.redhat.com/show_bug.cgi?id=643833

Applying this patch fixes the problem, but it's not clear to me whether 
this is the best long-term approach.

--- /usr/share/kde4/services/libokularGenerator_xps.desktop.backup      
2011-04-14 19:04:27.290627320 -0600
+++ /usr/share/kde4/services/libokularGenerator_xps.desktop     2011-04-14 
19:04:59.851338694 -0600
@@ -104,7 +104,7 @@
 Comment[zh_CN]=Okular 的 XPS 格式后端
 Comment[zh_TW]=Okular 的 XPS 後端
 X-KDE-ServiceTypes=okular/Generator
-MimeType=application/vnd.ms-xpsdocument;
+MimeType=application/vnd.ms-xpsdocument;application/oxps;
 X-KDE-Library=okularGenerator_xps
 X-KDE-Priority=4
 X-KDE-okularAPIVersion=1



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages okular depends on:
ii  kdebase-runtime     4:4.4.5-1            runtime components from the offici
ii  libc6               2.11.2-13            Embedded GNU C Library: Shared lib
ii  libfreetype6        2.4.4-1              FreeType 2 font engine, shared lib
ii  libjpeg62           6b1-1                The Independent JPEG Group's JPEG
ii  libkdecore5         4:4.4.5-3            the KDE Platform Core Library
ii  libkdeui5           4:4.4.5-3            the KDE Platform User Interface Li
ii  libkio5             4:4.4.5-3            the Network-enabled File Managemen
ii  libkparts4          4:4.4.5-3            the Framework for the KDE Platform
ii  libkpty4            4:4.4.5-3            the Pseudo Terminal Library for th
ii  libkutils4          4:4.4.5-3            various utility classes for the KD
ii  libokularcore1      4:4.4.5-2            libraries for the Okular document
ii  libphonon4          4:4.6.0really4.5.0-2 multimedia framework from KDE - co
ii  libpoppler-qt4-3    0.12.4-1.2           PDF rendering library (Qt 4 based
ii  libqca2             2.0.2-1              libraries for the Qt Cryptographic
ii  libqimageblitz4     1:0.0.6-3            QImageBlitz image effects library
ii  libqt4-dbus         4:4.7.2-3            Qt 4 D-Bus module
ii  libqt4-svg          4:4.7.2-3            Qt 4 SVG module
ii  libqt4-xml          4:4.7.2-3            Qt 4 XML module
ii  libqtcore4          4:4.7.2-3            Qt 4 core module
ii  libqtgui4           4:4.7.2-3            Qt 4 GUI module
ii  libspectre1         0.2.6-1+b1           Library for rendering PostScript d
ii  libstdc++6          4.6.0-2              The GNU Standard C++ Library v3
ii  phonon              4:4.6.0really4.5.0-2 multimedia framework from KDE - me
ii  zlib1g              1:1.2.3.4.dfsg-3     compression library - runtime

okular recommends no packages.

Versions of packages okular suggests:
ii  ghostscript                  9.02~dfsg-1 interpreter for the PostScript lan
pn  kttsd                        <none>      (no description available)
pn  okular-extra-backends        <none>      (no description available)
ii  poppler-data                 0.4.4-1     Encoding data for the poppler PDF
ii  texlive-binaries             2009-8      Binaries for TeX Live
ii  unrar                        1:4.0.3-1   Unarchiver for .rar files (non-fre

-- no debconf information

Reply via email to