kiwix / kiwix-xulrunner

[ARCHIVED] Legacy Kiwix desktop solution for Windows/macOS/Linux
https://download.kiwix.org/release/kiwix-xulrunner/
GNU General Public License v3.0
112 stars 28 forks source link

ZIM files can't manually be opened from some file managers #313

Closed mhutti1 closed 7 years ago

mhutti1 commented 8 years ago

Some file managers can see the file association but some such as the default in 6.0 upwards can't.

kelson42 commented 8 years ago

Yes I confirm this from a personal point-of-view and also I hear about that problem time to time with user feedbacks.

mhutti1 commented 7 years ago

Steps to reproduce:

  1. Download a ZIM file through our app.
  2. Attempt to open local file in a file manager.

What you get:

What we want:

mhutti1 commented 7 years ago

So the problem is that android can't associate files by extension only by mime type. But android also doesn't really support mime types. This leads us to have to use application/octet-stream as a general mime type meaning our app might try to open some unrelated files if the user clicks on them. I think that this is a decent albeit annoying compromise for now.

kelson42 commented 7 years ago

Test on a Andorid 6.0.1 device (Samsung):

Test on a Android 4.2.2 device (Samsung):

So, it seems that the association with "application/octet-stream" even does not always work.

mhutti1 commented 7 years ago

@kelson42 This is not good. I have a bad feeling Samsung may be the issue here making it either impossible or requiring an even more cumbersome workaround.

mhutti1 commented 7 years ago

@kelson42 Try now.

kelson42 commented 7 years ago

@mhutti1 THX a lot, I'll do it tomorrow.

kelson42 commented 7 years ago

Works perfectly with all of my tests. Kudos!