diff options
author | Matt Holgate <matt@emobix.co.uk> | 2014-07-01 18:27:33 +0100 |
---|---|---|
committer | Matt Holgate <matt@emobix.co.uk> | 2014-07-01 18:27:33 +0100 |
commit | 2fc6ce674a746af2a0b20731f302cac7ea120f0f (patch) | |
tree | cd56e9e2e1ee5ac49e48c824961174c882d8542c | |
parent | bae042e93be9e516d950b317349f206cf1921aea (diff) | |
download | mupdf-2fc6ce674a746af2a0b20731f302cac7ea120f0f.tar.xz |
Fix bug #695346 - iOS app does not register to open CBZ files.
Use the UTI 'public.cbz-archive' instead of the more generic
'public.zip-archive'. It's likely another app (or the OS) has an
Exported UTI for 'public.zip-archive' which would take precedence over
our Imported UTI and not have a 'cbz' extension.
It's not entirely clear what the correct UTI to use for CBZs is (there
are a few), but public.cbz-archive seems to be most likely candidate.
Remove the 'zip' extension, as we probably don't want to load arbitrary
zip files.
Add mimetypes for all completeness, and separate OXPS from XPS as it has
a different mimetype.
-rw-r--r-- | platform/ios/Info.plist | 43 |
1 files changed, 39 insertions, 4 deletions
diff --git a/platform/ios/Info.plist b/platform/ios/Info.plist index 451f5a2f..ae1a16f3 100644 --- a/platform/ios/Info.plist +++ b/platform/ios/Info.plist @@ -29,13 +29,27 @@ </array> </dict> <dict> + <key>CFBundleTypeIconFiles</key> + <array/> <key>CFBundleTypeName</key> <string>CBZ</string> <key>LSHandlerRank</key> <string>Alternate</string> <key>LSItemContentTypes</key> <array> - <string>public.zip-archive</string> + <string>public.cbz-archive</string> + </array> + </dict> + <dict> + <key>CFBundleTypeIconFiles</key> + <array/> + <key>CFBundleTypeName</key> + <string>OXPS</string> + <key>LSHandlerRank</key> + <string>Alternate</string> + <key>LSItemContentTypes</key> + <array> + <string>com.microsoft.oxps</string> </array> </dict> </array> @@ -137,8 +151,9 @@ <key>public.filename-extension</key> <array> <string>xps</string> - <string>oxps</string> </array> + <key>public.mime-type</key> + <string>application/vnd.ms-xpsdocument</string> </dict> </dict> <dict> @@ -147,14 +162,15 @@ <string>public.data</string> </array> <key>UTTypeIdentifier</key> - <string>public.zip-archive</string> + <string>public.cbz-archive</string> <key>UTTypeTagSpecification</key> <dict> <key>public.filename-extension</key> <array> - <string>zip</string> <string>cbz</string> </array> + <key>public.mime-type</key> + <string>application/x-cbz</string> </dict> </dict> <dict> @@ -170,6 +186,25 @@ <array> <string>pdf</string> </array> + <key>public.mime-type</key> + <string>application/pdf</string> + </dict> + </dict> + <dict> + <key>UTTypeConformsTo</key> + <array> + <string>public.data</string> + </array> + <key>UTTypeIdentifier</key> + <string>com.microsoft.oxps</string> + <key>UTTypeTagSpecification</key> + <dict> + <key>public.filename-extension</key> + <array> + <string>oxps</string> + </array> + <key>public.mime-type</key> + <string>application/oxps</string> </dict> </dict> </array> |