Bug 232061 - Okular cannot open .cbr document
Summary: Okular cannot open .cbr document
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.10.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-25 03:26 UTC by t4m
Modified: 2010-03-26 05:23 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.4.2
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description t4m 2010-03-25 03:26:29 UTC
Version:           0.10.1 (using 4.4.1 (KDE 4.4.1), PCLinuxOS release 2010 (PCLinuxOS) for i586)
Compiler:          gcc
OS:                Linux (i686) release 2.6.32.10-pclos2.bfs

I have comicbook files in .cbr and .cbz format.
I have unrar non free installed. The system has no problems extracting these files.
The system can correctly view these files using QComicBook.
Okular can view the .cbz files, but not the .cbr files, it complains "cannot
open document, unrar was not found" 
Unrar 3.93, is installed. The executable is in /usr/bin.
Comment 1 Harsh J 2010-03-25 12:41:57 UTC
Can't reproduce this, .cbr files seem to work fine with 3.93.

`unrar` version banner reports this:
UNRAR 3.93 freeware      Copyright (c) 1993-2010 Alexander Roshal

Tested with Okular trunk and 4.4.1

Do you, by any chance, also have the unrar free version installed?
Comment 2 t4m 2010-03-25 13:45:25 UTC
the only rar installed to this system reports
RAR 3.93   Copyright (c) 1993-2010 Alexander Roshal   15 Mar 2010
Shareware version         Type RAR -? for help
Okular says "cannot
open document, unrar was not found"
Comment 3 Harsh J 2010-03-25 14:02:04 UTC
Okay I think the problem here could be that your unrar exec is named 'rar' instead of 'unrar', and although they seem to be different packages they do support the same operations.

'rar' needs to be supported by Okular, I'll work on that (mostly change the code to detect unrar based on its 'freeware' keyword than its name, like how the GNOME app does iirc).

P.s. Could this also be a distro packaging issue? Cause afaik, all distros ship the unrar package with the exec named as 'unrar' and not 'rar', although both exist. Huh?
Comment 4 t4m 2010-03-26 01:56:21 UTC
The system is pclinuxos 2010 beta2. The only rar pkg installed is "rarlinux-3.9.3-2pclos2010"
Comment 5 Harsh J 2010-03-26 04:57:05 UTC
SVN commit 1107586 by harshj:

For Okular's Comic Book backend (.cbr files):
 * Add support for the 'rar' executable, since some distros seem to use it.

BUG:232061


 M  +4 -0      unrar.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1107586
Comment 6 Harsh J 2010-03-26 05:02:11 UTC
SVN commit 1107588 by harshj:

For Okular's Comic Book backend (.cbr files):
 * Add support for the 'rar' executable, since some distros seem to use it.

(Backport of 1107586)

CCBUG:232061



 M  +4 -0      unrar.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1107588
Comment 7 Harsh J 2010-03-26 05:23:43 UTC
Should be fixed in 4.4.2.