Specifying file associations in Info.plist of OS X version

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, xnview

Post Reply
meoow
Posts: 10
Joined: Sat Nov 20, 2010 6:06 am

Specifying file associations in Info.plist of OS X version

Post by meoow » Thu May 15, 2014 4:35 am

I think the associations of image extensions should be specified in Info.plist of OS X version, or XnView entry won't show up in the "Open With" list in context menu in Finder or PathFinder.
Here is the patch:

Code: Select all

--- Info.plist	2014-05-12 20:07:41.000000000 +0800
+++ Info_.plist	2014-05-15 12:24:23.000000000 +0800
@@ -7,15 +7,38 @@
         <key>CFBundleDocumentTypes</key>
         <array>
                 <dict>
-                        <key>CFBundleTypeExtensions</key>
-                        <array>
-                                <string>*</string>
-                        </array>
-                        <key>CFBundleTypeOSTypes</key>
-                        <array>
-                                <string>****</string>
-                                <string>fold</string>
-                        </array>
+                    <key>CFBundleTypeExtensions</key>
+                    <array>
+                        <string>ani</string>
+                        <string>bmp</string>
+                        <string>cur</string>
+                        <string>emf</string>
+                        <string>fpx</string>
+                        <string>gif</string>
+                        <string>icns</string>
+                        <string>ico</string>
+                        <string>jp2</string>
+                        <string>jpeg</string>
+                        <string>jpg</string>
+                        <string>pbm</string>
+                        <string>pcd</string>
+                        <string>pcx</string>
+                        <string>pict</string>
+                        <string>png</string>
+                        <string>ppm</string>
+                        <string>psd</string>
+                        <string>psp</string>
+                        <string>sgi</string>
+                        <string>tga</string>
+                        <string>tif</string>
+                        <string>tiff</string>
+                        <string>webp</string>
+                        <string>wmf</string>
+                        <string>xbm</string>
+                        <string>xpm</string>
+                    </array>
+                    <key>CFBundleTypeOSTypes</key>
+                    <array/>
                 </dict>
         </array>
         <key>CFBundleExecutable</key>

Post Reply