Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#61128 - [atril] application/vnd.rar in atril.thumbnailer
Attached to Project:
Community Packages
Opened by Bachsau (Bachsau) - Wednesday, 19 December 2018, 05:31 GMT
Last edited by Balló György (City-busz) - Friday, 04 October 2019, 14:49 GMT
Opened by Bachsau (Bachsau) - Wednesday, 19 December 2018, 05:31 GMT
Last edited by Balló György (City-busz) - Friday, 04 October 2019, 14:49 GMT
|
DetailsThe Atril thumbnailer suddenly seems to have "gained" the ability to handle RAR archives. Well I have several of them with a size of several gigabytes each and as soon as I open the directories containing them, unrar starts extracting them.
|
This task depends upon
Closed by Balló György (City-busz)
Friday, 04 October 2019, 14:49 GMT
Reason for closing: Fixed
Additional comments about closing: atril 1.20.3-2
Friday, 04 October 2019, 14:49 GMT
Reason for closing: Fixed
Additional comments about closing: atril 1.20.3-2
RAR archives are pretty often comic books in the ".cbr" format, and it is plenty realistic that a comic book is that size. And honestly I cannot imagine why one would want to have such a terrible format for any reason other than the requirement to put up with the restrictions of some document format.
My advice is to take advantage of your file browser's settings to disable thumbnail extraction for files over a certain size. I only have thumbnails for files that are less than 1MB in size.
You might want to investigate why your apparently-not-comic-book-archive RAR files are being detected as the freedesktop mimetype application/vnd.comicbook-rar or its deprecated alias application/x-cbr -- they're supposed to be bound to the .cbr file extension. I have no idea why that should suddenly change.
1) CBR comics are https://en.wikipedia.org/wiki/Comic_book_archive, which is a subcategory of https://en.wikipedia.org/wiki/E-book -- this is something trivial to google, so I suggest you try doing that first next time.
2) Okay, apparently atril's thumbnailer uses the generic "application/vnd.rar" instead of its subclass "application/vnd.comicbook-rar", so it is listing, and attempting to thumbnail, the wrong mimetype. This is a legitimate, and very recent, upstream bug.
3) Telling your file browser to not thumbnail files above a certain size is not a bad idea either way -- it is a workaround that will prevent faulty thumbnailer files from operating to excess ;) in addition to just prioritizing speed/responsiveness over thumbnails even for files which can be legitimately thumbnailed.
EDIT: Submitted https://github.com/mate-desktop/atril/pull/349
You stated that it suddenly started doing this -- I didn't know offhand the method it used to detect CBR files, but I did know that it's been supported for a very long time. I assumed either it should have always opened .rar files, or that it should have always opened .cbr files only.
Since I don't have atril installed, I checked xreader and evince instead (evince being the original project, and xreader being the cinnamon fork of atril), and noticed there was a dedicated mimetype. Evince had both of the correct mimetypes, xreader only had "application/x-cbr". Seemed clear to me it was using mimetype detection properly and it wasn't obvious to me that the faulty mimetype was actually in atril's source code. Turns out even after being linked to the gnome commit which did this right, the atril team decided to do something completely different -- that's pretty odd, TBH.
I'm sure you can figure out how your last sentence was incompatible with your claim of "No offence meant", and why I took offense.
I'm not really in the business of breaking from upstream, so I made patches according to the approved commit diff (https://github.com/mate-desktop/atril/commit/798757001016e5e02de545762fab0018f72ff086). If you are still having issues with atril, then I highly recommend opening an issue on the aforementioned Github page so that it can be handled appropriately by the developers themselves. Anything else is beyond the scope of what we do here.
>I've now added it to my NoExtract key in /etc/pacman.conf for the time beeing...
Good to know.
AHHH damn, I even ran autoreconf locally when I was manually testing the fix, but it never found its way into the PKGBUILD. ;)