Summary: | Ark fails to open certain .tar file | ||
---|---|---|---|
Product: | [Applications] ark | Reporter: | Luca Weiss <bugzilla> |
Component: | general | Assignee: | Elvis Angelaccio <elvis.angelaccio> |
Status: | RESOLVED UPSTREAM | ||
Severity: | major | CC: | bugseforuns, demm, edkasp, rakuco, rthomsen6 |
Priority: | NOR | ||
Version: | 16.04.3 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Luca Weiss
2016-08-16 19:13:53 UTC
Thanks for the report. shared-mime-info detects by content the file as text/plain, so I've forwarded your test file to their bugtracker: https://bugs.freedesktop.org/show_bug.cgi?id=97372 As discussed on IRC, this seems to be an issue with new shared-mime-info 1.7 This commit introduces an official IANA registered type: https://cgit.freedesktop.org/xdg/shared-mime-info/commit/?id=2002c05bb1e85e6e3f0be1427d727e896ebbaf10 Using shared-mime-info 1.7 on a rar file returns correct value: $ xdg-mime query filetype example.rar application/vnd.rar A rebuild of Ark with these 2 sed lines makes it so Ark open .rar. files correctly again: sed -i 's|application/x-rar|application/vnd.rar|' plugins/clirarplugin/CMakeLists.txt sed -i 's|application/x-rar|application/vnd.rar|' plugins/clirarplugin/kerfuffle_clirar.json.cmake (not intended as a patch, since this will break rar files for systems with older then 1.7, just mentioning these sed lines to inform they fix this issue for shared-mime-info 1.7 only) (In reply to demm from comment #2) > As discussed on IRC, this seems to be an issue with new shared-mime-info 1.7 > > This commit introduces an official IANA registered type: > https://cgit.freedesktop.org/xdg/shared-mime-info/commit/ > ?id=2002c05bb1e85e6e3f0be1427d727e896ebbaf10 > > Using shared-mime-info 1.7 on a rar file returns correct value: > $ xdg-mime query filetype example.rar > application/vnd.rar > > A rebuild of Ark with these 2 sed lines makes it so Ark open .rar. files > correctly again: > sed -i 's|application/x-rar|application/vnd.rar|' > plugins/clirarplugin/CMakeLists.txt > sed -i 's|application/x-rar|application/vnd.rar|' > plugins/clirarplugin/kerfuffle_clirar.json.cmake > > (not intended as a patch, since this will break rar files for systems with > older then 1.7, just mentioning these sed lines to inform they fix this > issue for shared-mime-info 1.7 only) Let's track this in #368786 #368786 is RESOLVED FIXED. Currently, I still can't open the MP190_debian_printer.tar Neon git stable, Plasma 5.12.0, KF 5.43.0, Qt 5.9.3, Ark 17.12.2 Tried with shared-mime-info 1.5, 1.7 and 1.9 on Arch Linux, Ark 17.12.2 says "no suitable plugin found. Ark does not seem to support this file type" when I try to open MP190_debian_printer.tar file. This issue will be fixed in Qt 5.11. See https://bugs.freedesktop.org/show_bug.cgi?id=97372 and http://code.qt.io/cgit/qt/qtbase.git/commit/?id=8d7af27e42e28fc5ebcbcf023b75444899dba2ca |