summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-06-18 14:15:27 -0700
committerKeith Packard <keithp@keithp.com>2014-06-18 14:18:46 -0700
commitfac94c593285eacda57de257fa2be0548341b567 (patch)
tree6b25f7390ddd1ce77102296c42a3063143b438c7
parent5871225a0c442cf5afa41a444ff8bfb8f4002721 (diff)
macosx: Define icons for our file types on OS X
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>
-rw-r--r--altosui/Info.plist.in27
-rw-r--r--micropeak/Info.plist.in15
-rw-r--r--telegps/Info.plist.in27
3 files changed, 69 insertions, 0 deletions
diff --git a/altosui/Info.plist.in b/altosui/Info.plist.in
index 46dea171..bae6d52c 100644
--- a/altosui/Info.plist.in
+++ b/altosui/Info.plist.in
@@ -24,6 +24,33 @@
<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>
diff --git a/micropeak/Info.plist.in b/micropeak/Info.plist.in
index 40984c5a..8f751079 100644
--- a/micropeak/Info.plist.in
+++ b/micropeak/Info.plist.in
@@ -24,6 +24,21 @@
<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>
diff --git a/telegps/Info.plist.in b/telegps/Info.plist.in
index df05bb6e..7dbb77d1 100644
--- a/telegps/Info.plist.in
+++ b/telegps/Info.plist.in
@@ -24,6 +24,33 @@
<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>