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

Massimiliano Torromeo <massimiliano.torro...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |massimiliano.torromeo@gmail
                   |                            |.com

--- Comment #2 from Massimiliano Torromeo <massimiliano.torro...@gmail.com> ---
I took a look at the source code and found the problem.

When the archive is a rar file the thumbnailer has an algorithm to identify the
presence of an unrar binary and when it finds one in the path it calls it with
"--version" but both that unrar and rar binaries do not accept that argument
and instead they expect arguments to have a single dash (just "-version").

I tested this with a dirty hack (tm) by moving /usr/bin/unrar to
/usr/bin/unrar-bin and replacing it with the a bash script and the thumbnails
are now being generated correctly.

For anyone interested, the script looks like this (do not forget to "chmod
755"):

#!/bin/bash
if [ "$1" = "--version" ]; then
        exec unrar-bin -version
fi
exec unrar-bin "$@"

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to