[Okular-devel] [okular] [Bug 325677] okular fails to open .cbr files with newest unrar installed

Jörg Schuck joerg_schuck at web.de
Mon Oct 7 23:46:42 UTC 2013


https://bugs.kde.org/show_bug.cgi?id=325677

--- Comment #7 from Jörg Schuck <joerg_schuck at web.de> ---
I dug a little deeper. Seems like the problem essentially comes from line 131
in generators/comicbook/unrar.cpp
> startSyncProcess( QStringList() << "lb" << mFileName );

The unrar lb command changed its  behavior in the current version.

I get the following outputs for the error-sample:

>$unrar | head -n 2 ; unrar lb error2.cbr
>
>UNRAR 4.20 freeware      Copyright (c) 1993-2012 Alexander Roshal
>Error.jpg
>error2

> $unrar | head -n 2 ; unrar lb error2.cbr
>
>UNRAR 5.00 freeware      Copyright (c) 1993-2013 Alexander Roshal
>error2/Error.jpg
>error2

The current version is now listing the containing folder as well as the image.
Because of this, the list() function in unrar.cpp can't find any of the
extracted images and returns an empty QStringList.

Seems like line 117 in generators/comicbook/unrar.cpp needs to be
> int ret = startSyncProcess( QStringList() << "x" << mFileName << mTempDir->name() );
for unrar version 5+.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list