Bug 369078

Summary: okular cannot open a cbr comic file
Product: [Applications] okular Reporter: humufr
Component: Comicbook backendAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: normal CC: joao.vidal.silva, luigi.toscano, yurchor
Priority: NOR    
Version: 0.25.80   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description humufr 2016-09-19 21:07:43 UTC
Okular cannot open any cbr file (version 0.26)

Reproducible: Always

Steps to Reproduce:
1. click on a cbr file 


Actual Results:  
okular error message open saying that it cannot open the cbr file.

Expected Results:  
okular the comic cbr file
Comment 1 Yuri Chornoivan 2016-09-20 07:26:50 UTC
Hi,

Cannot confirm here. Okular 0.26 successfully opens cbr.

Do you have unrar package installed?

Thanks in advance for your answer.
Comment 2 humufr 2016-09-20 10:28:23 UTC
I didn't have unrar but rar installed. I changed it for unrar but I have the same problem. I would have been surprised if that was the cause since it used to work with the previous version.

I am using archlinux package from kde-unstable. 

Thanks.
Comment 3 Luigi Toscano 2016-09-20 10:31:39 UTC
iirc nothing relevant changed in that part of code. Maybe... which version of shared-mime-info do you have? 1.7?
Comment 4 humufr 2016-09-20 10:37:19 UTC
Yes this is the one 1.7
Comment 5 Luigi Toscano 2016-09-20 10:40:05 UTC
1.7 broke rar support in many application, as introduced a new MIMEType for that format. See for example:
https://bugs.kde.org/show_bug.cgi?id=368786
Does downgrading to 1.6 work for now?
Comment 6 humufr 2016-09-20 11:08:54 UTC
Yes it is the problem. I downgrad to 1.6 and now it is working. This bug can be closed or transferred to shared-mime-info.

thanks
Comment 7 Albert Astals Cid 2016-10-01 13:40:22 UTC
Git commit f2b2d94897cfedcec91b82a6bed0450546686b51 by Albert Astals Cid.
Committed on 01/10/2016 at 13:39.
Pushed by aacid into branch 'Applications/16.08'.

Open CBR files with shared-mime-info >= 1.7

Not ideal fix surely but it'll do for the moment

M  +1    -1    generators/comicbook/document.cpp

http://commits.kde.org/okular/f2b2d94897cfedcec91b82a6bed0450546686b51
Comment 8 Luigi Toscano 2016-10-03 00:00:01 UTC
*** Bug 369654 has been marked as a duplicate of this bug. ***