tag 622835 + fixed-upstream pending
thanks

Hi,
> 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".

This is mostly due to the kdelibs mimetype detection stuff in 4.4 not 
considering aliases properly (as application/vnd.ms-xpsdocument is since 
shared-mime-info 0.80).

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

One of the two parties in IRC chat of comment #5 is me, which also 
produced the upstream changes.

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

kdelibs 4.6 can handle aliases better, but also okular in KDE 4.6 has 
both the mimetypes, so this problem will be fixed with the KDE 4.6 
upload.
I don't think it is worth to do a kdegraphics 4.4 upload just for a 
temporary issue in testing/sid (this does not affect stable, as it has 
shared-mime-info 0.71) which can eventually be fixed editing a file 
manually, with no need to recompile anything.

-- 
Pino Toscano

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to