View Issue Details

IDProjectCategoryView StatusLast Update
0000385fileGeneralpublic2022-09-27 19:26
Reportersaltedcoffii Assigned Tochristos  
PrioritynormalSeveritytweakReproducibilityalways
Status resolvedResolutionfixed 
Platformx86_64OSArch LinuxOS Versionrolling
Product Version5.43 
Fixed in Version5.44 
Summary0000385: Anki APKG files are not recognized separately from ZIP files
DescriptionAnki (ankiweb.net) APKG files are compressed ZIP archives with exported flash card information, so that flash card sets from the app can be shared. From what I understand, libmagic sees the ZIP magic bytes and identifies it as a ZIP file, however this failure to recognize an APKG files has implications: on GNOME, double-clicking on an APKG file does not import the flash cards to Anki, if it is installed (expected behavior) but instead opens the archive in an archive manager, such as file-roller.
Steps To Reproduce1. Download any APKG file (many are available here https://ankiweb.net/shared/decks/)
2. run `file -mime-type <your filename>.apkg` and observe mimetype is not `application/x-apkg` but is `application/zip`
Tagsfilename, magic, zip

Activities

christos

2022-09-27 19:26

manager   ~0003821

Added magic for them, thanks

Issue History

Date Modified Username Field Change
2022-09-27 10:10 saltedcoffii New Issue
2022-09-27 10:10 saltedcoffii Tag Attached: filename
2022-09-27 10:10 saltedcoffii Tag Attached: magic
2022-09-27 10:10 saltedcoffii Tag Attached: zip
2022-09-27 19:26 christos Assigned To => christos
2022-09-27 19:26 christos Status new => assigned
2022-09-27 19:26 christos Status assigned => resolved
2022-09-27 19:26 christos Resolution open => fixed
2022-09-27 19:26 christos Fixed in Version => 5.44
2022-09-27 19:26 christos Note Added: 0003821