[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#789992: okular: error when opening comic book archive



On 26/06/15 00:06, Enrico Bianchi wrote:
> Package: okular
> Version: 4:4.14.2-2
> Severity: normal

> When I open a comic book archive, I get an error. In detail, okular reports
> this message:

> okular(21647) UnrarHelper::UnrarHelper: No unrar detected.

> I've tried to install unrar and unrar-free packages, but error is the same.
> Error appears for CBR and CBZ comic book archives

The unrar-nonfree version in jessie non-free doesn't support the --version
argument that is used by okular to detect the flavor of the unrar command. And
so it produces this error. This has been fixed upstream in the 4.14.3 release.
The fix is simple enough and could be included in a future jessie update
(commit 717c4b0f6a3a1bc8a2ac02a4028be62c4b4996e3).

Meanwhile you could workaround this issue, either uninstalling the nonfree
unrar (the free version supports the --version argument, but it may fail to
extract some files), or create add an unrar-nonfree wrapper in /usr/local/bin
something in the lines:
#!/bin/sh

if [ "z--version" = "z$1" ]; then
    exec /usr/bin/unrar-nonfree -v
fi
exec /usr/bin/unrar-nonfree "$@"

Happy hacking,
-- 
"Email is a wonderful thing for people whose role in life is to be on top of
things. But not for me; my role is to be on the bottom of things. What I do
takes long hours of studying and uninterruptible concentration."
-- Donald Knuth
Saludos /\/\ /\ >< `/


Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: