Bug 262696 - Mimetype problem for fictionbook downloads.
Summary: Mimetype problem for fictionbook downloads.
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-09 21:03 UTC by Christian Trippe
Modified: 2011-01-14 22:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Trippe 2011-01-09 21:03:32 UTC
Version:           0.5.81 (using KDE 4.5.95) 
OS:                Linux

I tried viewing a fictionbook from http://manybooks.net/titles/vernejul3351633516-8.html

Choosing download for the FictionBook2, I get a dialog which tells me it is of mimetype: application/x-fictionbook

And gives the options to save it or choose an application to open it with.
Choosing okular there works fine.
The other way downloading it and trying to open it locally also works. There it even launches okular directly. But locally it says it has the Mimetype: application/x-fictionbook-xml.
Please note the additional "xml".

IMHO it would be nice the other mimetype which is reported when trying to open it directly would also be supported.

I found a somehow related report: bug 233301

Reproducible: Always




OS: Linux (i686) release 2.6.37-default
Compiler: gcc
Comment 1 Albert Astals Cid 2011-01-14 00:29:26 UTC
Okular does not define the mimetypes so it's not something we can fix. You might want to open a bug against the shared-mime-info database http://freedesktop.org/wiki/Software/shared-mime-info

Thanks for using Okular :-)
Comment 2 Christian Trippe 2011-01-14 21:31:26 UTC
Thanks for the feedback. For reference I reported this at https://bugs.freedesktop.org/show_bug.cgi?id=33133

And thanks for okular!
Comment 3 Pino Toscano 2011-01-14 21:50:52 UTC
No, shared-mime-info >= 0.60 provides application/x-fictionbook+xml, which is the proper name, while the local kde.xml (provided by kdelibs) provides application/x-fictionbook, which is used by okular.

The fix is making okular use the proper mime type, I'll do that in a moment.
Comment 4 Pino Toscano 2011-01-14 21:58:00 UTC
Hm, actually okular uses already the right mimetype.
Christian, which version of shared-mime-info do you have installed? And kdelibs and okular?
Comment 5 Christian Trippe 2011-01-14 22:05:54 UTC
I use KDE 4.6 RC2 and shared-mime-info-0.71.
Comment 6 Pino Toscano 2011-01-14 22:21:43 UTC
Hm ok. I understand now, the shared-mime-info mimetype needs an alias, for because of the mimetype reported by the server (sigh).