macosx: Define icons for our file types on OS X
authorKeith Packard <keithp@keithp.com>
Wed, 18 Jun 2014 21:15:27 +0000 (14:15 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 18 Jun 2014 21:18:46 +0000 (14:18 -0700)
Adds definitions to the Info.plist files shipped to specify which
icons to show for .telem, .eeprom and .mpd files. Note that the
applications don't respond to open apple events, so double clicking on
a file only starts the application.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/Info.plist.in
micropeak/Info.plist.in
telegps/Info.plist.in

index 46dea171b85cbfefca3a628476a0ef12e2b79603..bae6d52c35c6ad3eb32c6d42a57e72f4748bcfc9 100644 (file)
        <string>6.0</string>
        <key>CFBundleIconFile</key>
        <string>AltosUIIcon.icns</string>
        <string>6.0</string>
        <key>CFBundleIconFile</key>
        <string>AltosUIIcon.icns</string>
+       <key>CFBundleDocumentTypes</key>
+       <array>
+         <dict>
+           <key>CFBundleTypeName</key>
+           <string>Telemetry</string>
+           <key>CFBundleTypeIconFile</key>
+           <string>AltosUIIcon.icns</string>
+           <key>CFBundleTypeExtensions</key>
+           <array>
+             <string>telem</string>
+           </array>
+           <key>CFBundleTypeRole</key>
+           <string>Editor</string>
+         </dict>
+         <dict>
+           <key>CFBundleTypeName</key>
+           <string>Eeprom</string>
+           <key>CFBundleTypeIconFile</key>
+           <string>AltosUIIcon.icns</string>
+           <key>CFBundleTypeExtensions</key>
+           <array>
+             <string>eeprom</string>
+           </array>
+           <key>CFBundleTypeRole</key>
+           <string>Editor</string>
+         </dict>
+       </array>
        <key>Java</key>
        <dict>
                <key>MainClass</key>
        <key>Java</key>
        <dict>
                <key>MainClass</key>
index 40984c5aa7b887d2aa17c1eee695d719a644a37e..8f751079688807ae2e23473efc0cfe4e340e5c48 100644 (file)
        <string>6.0</string>
        <key>CFBundleIconFile</key>
        <string>MicroPeak.icns</string>
        <string>6.0</string>
        <key>CFBundleIconFile</key>
        <string>MicroPeak.icns</string>
+       <key>CFBundleDocumentTypes</key>
+       <array>
+         <dict>
+           <key>CFBundleTypeName</key>
+           <string>MicroPeak data file</string>
+           <key>CFBundleTypeIconFile</key>
+           <string>MicroPeak.icns</string>
+           <key>CFBundleTypeExtensions</key>
+           <array>
+             <string>mpd</string>
+           </array>
+           <key>CFBundleTypeRole</key>
+           <string>Editor</string>
+         </dict>
+       </array>
        <key>Java</key>
        <dict>
                <key>MainClass</key>
        <key>Java</key>
        <dict>
                <key>MainClass</key>
index df05bb6e27fe1c714f6d44674c2cdf2f7f67dfde..7dbb77d1512687113d1152a8aad735f0ef541a97 100644 (file)
        <string>6.0</string>
        <key>CFBundleIconFile</key>
        <string>TeleGPS.icns</string>
        <string>6.0</string>
        <key>CFBundleIconFile</key>
        <string>TeleGPS.icns</string>
+       <key>CFBundleDocumentTypes</key>
+       <array>
+         <dict>
+           <key>CFBundleTypeName</key>
+           <string>Telemetry</string>
+           <key>CFBundleTypeIconFile</key>
+           <string>TeleGPS.icns</string>
+           <key>CFBundleTypeExtensions</key>
+           <array>
+             <string>telem</string>
+           </array>
+           <key>CFBundleTypeRole</key>
+           <string>Editor</string>
+         </dict>
+         <dict>
+           <key>CFBundleTypeName</key>
+           <string>Eeprom</string>
+           <key>CFBundleTypeIconFile</key>
+           <string>TeleGPS.icns</string>
+           <key>CFBundleTypeExtensions</key>
+           <array>
+             <string>eeprom</string>
+           </array>
+           <key>CFBundleTypeRole</key>
+           <string>Editor</string>
+         </dict>
+       </array>
        <key>Java</key>
        <dict>
                <key>MainClass</key>
        <key>Java</key>
        <dict>
                <key>MainClass</key>