The change to use libmagic in 0.8.2 has made Ristretto unable to open images through symlinks as libmagic isn't instructed to follow them. This makes it return a non-image mime type (presumably x-symlink or something like that). The call to magic_open() in src/file.c (line 406) should be: magic_t magic = magic_open(MAGIC_MIME_TYPE | MAGIC_SYMLINK); This fixes the behaviour. I've put this as major/high as it makes Ristretto not work correctly, but doesn't cause any data loss or anything like that. I hope this is appropriate!
The problem can be shown by following these steps, then trying to open symtest/subdir/test.png (the symlink). mkdir symtest cd symtest curl -O 'http://test.gregorcapuder.com/wp-content/uploads/2016/01/test.png' mkdir subdir cd subdir ln -s ../test.png
Thanks! I will fix it with your proposed change,
Fixed by https://git.xfce.org/apps/ristretto/commit/?id=12515dccb354ffc4ffcc0cdd7a14d58e3b2628de, thanks again!