[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-4.2' - 4 commits - solenv/bin sysui/desktop

Tor Lillqvist tml at collabora.com
Sat Sep 20 14:09:47 PDT 2014


 solenv/bin/macosx-codesign-app-bundle |   27 -
 sysui/desktop/macosx/Info.plist.in    |  870 ++++++++++++++--------------------
 2 files changed, 392 insertions(+), 505 deletions(-)

New commits:
commit 77845a034d093e16c0dd81bccad35f09d5862431
Author: Tor Lillqvist <tml at collabora.com>
Date:   Sun Sep 21 00:04:21 2014 +0300

    The code signature identifiers of bundles need to match the bundle identifiers
    
    Change-Id: Iaf4af02dd23f77758db76107d08050978ef95c82

diff --git a/solenv/bin/macosx-codesign-app-bundle b/solenv/bin/macosx-codesign-app-bundle
index 40e0963..1996bda 100755
--- a/solenv/bin/macosx-codesign-app-bundle
+++ b/solenv/bin/macosx-codesign-app-bundle
@@ -55,19 +55,25 @@ done
 
 # Sign executables
 
-find "$APP_BUNDLE/Contents/MacOS" \
-     "$APP_BUNDLE/Contents/Frameworks/LibreOfficePython.framework/Versions/"[1-9]*/Resources/Python.app/Contents/MacOS \
-     -type f |
+find "$APP_BUNDLE/Contents/MacOS" -type f |
 while read file; do
     id=`echo ${file#${APP_BUNDLE}/Contents/} | sed -e 's,/,.,g'`
     codesign --verbose --identifier=$MACOSX_BUNDLE_IDENTIFIER.$id --sign "$MACOSX_CODESIGNING_IDENTITY" $entitlements "$file"
 done
 
-# Sign included bundles. First frameworks.
+# Sign included bundles. First .app ones (i.e. the Python.app inside
+# the LibreOfficePython.framework. Be generic for kicks...)
 
-# Yeah, we don't bundle any other framework than our Python one, and
-# it has just one version, so this generic search is mostly for
-# completeness.
+find "$APP_BUNDLE" -name '*.app' -type d |
+while read app; do
+    fn=`basename "$app"`
+    fn=${fn%.*}
+    # Assume the app has a XML (and not binary) Info.plist
+    id=`grep -A 1 '<key>CFBundleIdentifier</key>' $app/Contents/Info.plist | tail -1 | sed -e 's,.*<string>,,' -e 's,</string>.*,,'`
+    codesign --verbose --identifier=$id --sign "$MACOSX_CODESIGNING_IDENTITY" "$app"
+done
+
+# Then .framework ones. Again, be generic just for kicks.
 
 find "$APP_BUNDLE" -name '*.framework' -type d |
 while read framework; do
@@ -75,8 +81,9 @@ while read framework; do
     fn=${fn%.*}
     for version in "$framework"/Versions/*; do
         if test ! -L "$version" -a -d "$version"; then
-            codesign --verbose --prefix=$MACOSX_BUNDLE_IDENTIFIER. --sign "$MACOSX_CODESIGNING_IDENTITY" "$version/$fn"
-            codesign --verbose --prefix=$MACOSX_BUNDLE_IDENTIFIER. --sign "$MACOSX_CODESIGNING_IDENTITY" "$version"
+	    # Assume the framework has a XML (and not binary) Info.plist
+	    id=`grep -A 1 '<key>CFBundleIdentifier</key>' $version/Resources/Info.plist | tail -1 | sed -e 's,.*<string>,,' -e 's,</string>.*,,'`
+            codesign --verbose --identifier=$id --sign "$MACOSX_CODESIGNING_IDENTITY" "$version"
         fi
     done
 done
commit b1df4e4cd39a7aa64d4ede3e1090e703e0c6c760
Author: Tor Lillqvist <tml at collabora.com>
Date:   Sat Sep 20 23:40:06 2014 +0300

    Drop the deprecated CFBundleDocumentTypes and just have the UTI stuff
    
    Add icon file entries to the UTIs, and add missing UTIs. Let's hope
    CFBundleDocumentTypes really *is* deprecated and it works to just have
    the UTI thingies...
    
    Change-Id: Ia3c5cfd674ee6ae57621b63bceeea6ec50a0e6fe

diff --git a/sysui/desktop/macosx/Info.plist.in b/sysui/desktop/macosx/Info.plist.in
index 3fdfa3c..42c2f52 100755
--- a/sysui/desktop/macosx/Info.plist.in
+++ b/sysui/desktop/macosx/Info.plist.in
@@ -21,7 +21,7 @@
 <dict>
 	<key>CFBundleDevelopmentRegion</key>
 	<string>English</string>
-	<!-- UTI declarations for OS X >= 10.4	-->
+
 	<key>UTExportedTypeDeclarations</key>
 	<array>
 		<!-- Writer documents -->
@@ -48,6 +48,8 @@
 					<string>application/vnd.stardivision.writer</string>
 				</array>
 			</dict>
+			<key>UTTypeIconFile</key>
+			<string>text.icns</string>
 		</dict>
 		<dict>
 			<key>UTTypeIdentifier</key>
@@ -70,6 +72,8 @@
 					<string>application/vnd.oasis.opendocument.text</string>
 				</array>
 			</dict>
+			<key>UTTypeIconFile</key>
+			<string>oasis-text.icns</string>
 		</dict>
 
 		<!-- Calc documents -->
@@ -96,6 +100,8 @@
 					<string>application/vnd.stardivision.calc</string>
 				</array>
 			</dict>
+			<key>UTTypeIconFile</key>
+			<string>spreadsheet.icns</string>
 		</dict>
 		<dict>
 			<key>UTTypeIdentifier</key>
@@ -118,6 +124,8 @@
 					<string>application/vnd.oasis.opendocument.spreadsheet</string>
 				</array>
 			</dict>
+			<key>UTTypeIconFile</key>
+			<string>oasis-spreadsheet.icns</string>
 		</dict>
 
 		<!-- Impress documents -->
@@ -146,6 +154,8 @@
 					<string>application/vnd.stardivision.impress-packed</string>
 				</array>
 			</dict>
+			<key>UTTypeIconFile</key>
+			<string>presentation.icns</string>
 		</dict>
 		<dict>
 			<key>UTTypeIdentifier</key>
@@ -168,6 +178,8 @@
 					<string>application/vnd.oasis.opendocument.presentation</string>
 				</array>
 			</dict>
+			<key>UTTypeIconFile</key>
+			<string>oasis-presentation.icns</string>
 		</dict>
 
 		<!-- Draw documents -->
@@ -194,6 +206,8 @@
 					<string>application/vnd.stardivision.draw</string>
 				</array>
 			</dict>
+			<key>UTTypeIconFile</key>
+			<string>drawing.icns</string>
 		</dict>
 		<dict>
 			<key>UTTypeIdentifier</key>
@@ -216,6 +230,8 @@
 					<string>application/vnd.oasis.opendocument.graphics</string>
 				</array>
 			</dict>
+			<key>UTTypeIconFile</key>
+			<string>oasis-drawing.icns</string>
 		</dict>
 
 		<!-- Chart documents -->
@@ -247,7 +263,7 @@
 			<key>UTTypeIdentifier</key>
 			<string>org.openoffice.text-master</string>
 			<key>UTTypeDescription</key>
-			<string>OpenOffice.org 1.0 Master Document</string>
+			<string>OpenOffice.org 1.0 Master</string>
 			<key>UTTypeConformsTo</key>
 			<array>
 				<string>public.data</string>
@@ -264,6 +280,8 @@
 					<string>application/vnd.sun.xml.writer.global</string>
 				</array>
 			</dict>
+			<key>UTTypeIconFile</key>
+			<string>master-document.icns</string>
 		</dict>
 		<dict>
 			<key>UTTypeIdentifier</key>
@@ -286,6 +304,8 @@
 					<string>application/vnd.oasis.opendocument.text-master</string>
 				</array>
 			</dict>
+			<key>UTTypeIconFile</key>
+			<string>oasis-master-document.icns</string>
 		</dict>
 
 		<!-- Math documents -->
@@ -312,6 +332,8 @@
 					<string>application/vnd.stardivision.math</string>
 				</array>
 			</dict>
+			<key>UTTypeIconFile</key>
+			<string>formula.icns</string>
 		</dict>
 		<dict>
 			<key>UTTypeIdentifier</key>
@@ -334,6 +356,8 @@
 					<string>application/vnd.oasis.opendocument.formula</string>
 				</array>
 			</dict>
+			<key>UTTypeIconFile</key>
+			<string>oasis-formula.icns</string>
 		</dict>
 
 		<!-- Text template documents -->
@@ -358,6 +382,8 @@
 					<string>application/vnd.sun.xml.writer.template</string>
 				</array>
 			</dict>
+			<key>UTTypeIconFile</key>
+			<string>text-template.icns</string>
 		</dict>
 		<dict>
 			<key>UTTypeIdentifier</key>
@@ -380,6 +406,8 @@
 					<string>application/vnd.oasis.opendocument.text-template</string>
 				</array>
 			</dict>
+			<key>UTTypeIconFile</key>
+			<string>oasis-text-template.icns</string>
 		</dict>
 
 		<!-- Spreadsheet template documents -->
@@ -404,6 +432,8 @@
 					<string>application/vnd.sun.xml.calc.template</string>
 				</array>
 			</dict>
+			<key>UTTypeIconFile</key>
+			<string>spreadsheet-template.icns</string>
 		</dict>
 		<dict>
 			<key>UTTypeIdentifier</key>
@@ -426,6 +456,8 @@
 					<string>application/vnd.oasis.opendocument.spreadsheet-template</string>
 				</array>
 			</dict>
+			<key>UTTypeIconFile</key>
+			<string>oasis-spreadsheet-template.icns</string>
 		</dict>
 
 		<!-- Presentation template documents -->
@@ -450,6 +482,8 @@
 					<string>application/vnd.sun.xml.impress.template</string>
 				</array>
 			</dict>
+			<key>UTTypeIconFile</key>
+			<string>presentation-template.icns</string>
 		</dict>
 		<dict>
 			<key>UTTypeIdentifier</key>
@@ -472,6 +506,8 @@
 					<string>application/vnd.oasis.opendocument.presentation-template</string>
 				</array>
 			</dict>
+			<key>UTTypeIconFile</key>
+			<string>oasis-presentation-template.icns</string>
 		</dict>
 
 		<!-- Drawing template documents -->
@@ -496,6 +532,8 @@
 					<string>application/vnd.sun.xml.draw.template</string>
 				</array>
 			</dict>
+			<key>UTTypeIconFile</key>
+			<string>drawing-template.icns</string>
 		</dict>
 		<dict>
 			<key>UTTypeIdentifier</key>
@@ -518,6 +556,8 @@
 					<string>application/vnd.oasis.opendocument.graphics-template</string>
 				</array>
 			</dict>
+			<key>UTTypeIconFile</key>
+			<string>oasis-drawing-template.icns</string>
 		</dict>
 
 		<!-- Base documents -->
@@ -542,6 +582,8 @@
 					<string>application/vnd.oasis.opendocument.database</string>
 				</array>
 			</dict>
+			<key>UTTypeIconFile</key>
+			<string>oasis-database.icns</string>
 		</dict>
 
 		<!-- Extensions -->
@@ -566,12 +608,36 @@
 					<string>application/vnd.openofficeorg.extension</string>
 				</array>
 			</dict>
+			<key>UTTypeIconFile</key>
+			<string>extension.icns</string>
 		</dict>
 	</array>
 
 	<key>UTImportedTypeDeclarations</key>
 	<array>
-		<!-- Microsoft Word XML -->
+		<!-- Microsoft Word Template -->
+		<dict>
+			<key>UTTypeConformsTo</key>
+			<array>
+				<string>public.composite-content</string>
+			</array>
+			<key>UTTypeDescription</key>
+			<string>Microsoft Word Template</string>
+			<key>UTTypeIdentifier</key>
+			<string>com.microsoft.word.dot</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<array>
+					<string>dot</string>
+				</array>
+				<key>public.mime-type</key>
+				<array>
+					<string>application/msword</string> <!-- ??? -->
+				</array>
+			</dict>
+		</dict>
+		<!-- OOXML wordprocessing -->
 		<dict>
 			<key>UTTypeConformsTo</key>
 			<array>
@@ -663,7 +729,7 @@
 			</dict>
 		</dict>
 
-		<!-- Microsoft Excel XML -->
+		<!-- OOXML spreadsheet -->
 		<dict>
 			<key>UTTypeConformsTo</key>
 			<array>
@@ -778,7 +844,7 @@
 			</dict>
 		</dict>
 
-		<!-- Microsoft Powerpoint XML -->
+		<!-- OOXML presentation -->
 		<dict>
 			<key>UTTypeConformsTo</key>
 			<array>
@@ -829,7 +895,6 @@
 			<array>
 				<string>org.openxmlformats.openxml</string>
 				<string>public.presentation</string>
-				<string>public.executable</string>
 			</array>
 			<key>UTTypeDescription</key>
 			<string>Office Open XML presentation template</string>
@@ -870,865 +935,349 @@
 				</array>
 			</dict>
 		</dict>
-	</array>
 
-	<!-- Document type declaration for OS X < 10.4 -->
-	<key>CFBundleDocumentTypes</key>
-	<array>
+		<!-- Others -->
 		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>sxw</string>
-				<string>sdw</string>
-			</array>
-			<key>CFBundleTypeMIMETypes</key>
+			<key>UTTypeConformsTo</key>
 			<array>
-				<string>application/vnd.sun.xml.writer</string>
-				<string>application/vnd.stardivision.writer</string>
+				<string>public.data</string>
+				<string>public.content</string>
 			</array>
-			<key>CFBundleTypeIconFile</key>
-			<string>text.icns</string>
-			<key>CFBundleTypeName</key>
-			<string>OpenOffice.org 1.0 Text</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>LSIsAppleDefaultForType</key>
-			<true/>
+			<key>UTTypeDescription</key>
+			<string>WordPerfect Document</string>
+			<key>UTTypeIdentifier</key>
+			<string>org.libreoffice.wpd-document</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<array>
+					<string>wpd</string>
+				</array>
+				<key>public.mime-type</key>
+				<array>
+					<string>application/vnd.wordperfect</string>
+				</array>
+			</dict>
 		</dict>
 		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>odt</string>
-			</array>
-			<key>CFBundleTypeMIMETypes</key>
+			<key>UTTypeConformsTo</key>
 			<array>
-				<string>application/vnd.oasis.opendocument.text</string>
+				<string>public.data</string>
+				<string>public.content</string>
 			</array>
-			<key>CFBundleTypeIconFile</key>
-			<string>oasis-text.icns</string>
-			<key>CFBundleTypeName</key>
-			<string>OpenDocument Text</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>LSIsAppleDefaultForType</key>
-			<true/>
+			<key>UTTypeDescription</key>
+			<string>PalmDoc eBook </string>
+			<key>UTTypeIdentifier</key>
+			<string>org.libreoffice.pdb-document</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<array>
+					<string>pdb</string>
+				</array>
+				<key>public.mime-type</key>
+				<array>
+					<string>application/x-aportisdoc</string>
+				</array>
+			</dict>
 		</dict>
 		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>sxc</string>
-				<string>sdc</string>
-			</array>
-			<key>CFBundleTypeMIMETypes</key>
+			<key>UTTypeConformsTo</key>
 			<array>
-				<string>application/vnd.sun.xml.calc</string>
-				<string>application/vnd.stardivision.calc</string>
+				<string>public.data</string>
+				<string>public.content</string>
 			</array>
-			<key>CFBundleTypeIconFile</key>
-			<string>spreadsheet.icns</string>
-			<key>CFBundleTypeName</key>
-			<string>OpenOffice.org 1.0 Spreadsheet</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>LSIsAppleDefaultForType</key>
-			<true/>
+			<key>UTTypeDescription</key>
+			<string>Hangul WP 97 Document</string>
+			<key>UTTypeIdentifier</key>
+			<string>org.libreoffice.hwp-document</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<array>
+					<string>hwp</string>
+				</array>
+				<key>public.mime-type</key>
+				<array>
+					<string>application/x-hwp-document</string> <!-- ??? -->
+				</array>
+			</dict>
 		</dict>
 		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>ods</string>
-			</array>
-			<key>CFBundleTypeMIMETypes</key>
+			<key>UTTypeConformsTo</key>
 			<array>
-				<string>application/vnd.oasis.opendocument.spreadsheet</string>
+				<string>public.data</string>
+				<string>public.content</string>
 			</array>
-			<key>CFBundleTypeIconFile</key>
-			<string>oasis-spreadsheet.icns</string>
-			<key>CFBundleTypeName</key>
-			<string>OpenDocument Spreadsheet</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>LSIsAppleDefaultForType</key>
-			<true/>
+			<key>UTTypeDescription</key>
+			<string>Microsoft Works for Mac Document (v1 - v4)</string>
+			<key>UTTypeIdentifier</key>
+			<string>org.libreoffice.wks-document</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<array>
+					<string>wps</string>
+				</array>
+				<key>public.mime-type</key>
+				<array>
+					<string>application/vnd.ms-works</string>
+				</array>
+			</dict>
 		</dict>
 		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>sxi</string>
-				<string>sdd</string>
-				<string>sdp</string>
-			</array>
-			<key>CFBundleTypeMIMETypes</key>
+			<key>UTTypeConformsTo</key>
 			<array>
-				<string>application/vnd.sun.xml.impress</string>
-				<string>application/vnd.stardivision.impress</string>
-				<string>application/vnd.stardivision.impress-packed</string>
+				<string>public.data</string>
+				<string>public.content</string>
 			</array>
-			<key>CFBundleTypeIconFile</key>
-			<string>presentation.icns</string>
-			<key>CFBundleTypeName</key>
-			<string>OpenOffice.org 1.0 Presentation</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>LSIsAppleDefaultForType</key>
-			<true/>
+			<key>UTTypeDescription</key>
+			<string>Data Interchange Format</string>
+			<key>UTTypeIdentifier</key>
+			<string>org.libreoffice.dif-document</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<array>
+					<string>dif</string>
+				</array>
+				<key>public.mime-type</key>
+				<array>
+					<string>application/x-dif-document</string> <!-- ??? -->
+				</array>
+			</dict>
 		</dict>
 		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>odp</string>
-			</array>
-			<key>CFBundleTypeMIMETypes</key>
+			<key>UTTypeConformsTo</key>
 			<array>
-				<string>application/vnd.oasis.opendocument.presentation</string>
+				<string>public.data</string>
+				<string>public.content</string>
 			</array>
-			<key>CFBundleTypeIconFile</key>
-			<string>oasis-presentation.icns</string>
-			<key>CFBundleTypeName</key>
-			<string>OpenDocument Presentation</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>LSIsAppleDefaultForType</key>
-			<true/>
+			<key>UTTypeDescription</key>
+			<string>SYLK Document</string>
+			<key>UTTypeIdentifier</key>
+			<string>org.libreoffice.slk-document</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<array>
+					<string>slk</string>
+				</array>
+				<key>public.mime-type</key>
+				<array>
+					<string>application/x-slk-document</string> <!-- ??? -->
+				</array>
+			</dict>
 		</dict>
 		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>sxd</string>
-				<string>sda</string>
-			</array>
-			<key>CFBundleTypeMIMETypes</key>
+			<key>UTTypeConformsTo</key>
 			<array>
-				<string>application/vnd.sun.xml.draw</string>
-				<string>application/vnd.stardivision.draw</string>
+				<string>public.data</string>
+				<string>public.content</string>
 			</array>
-			<key>CFBundleTypeIconFile</key>
-			<string>drawing.icns</string>
-			<key>CFBundleTypeName</key>
-			<string>OpenOffice.org 1.0 Drawing</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>LSIsAppleDefaultForType</key>
-			<true/>
+			<key>UTTypeDescription</key>
+			<string>Comma-Separated Value Document</string>
+			<key>UTTypeIdentifier</key>
+			<string>org.libreoffice.csv-document</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<array>
+					<string>csv</string>
+				</array>
+				<key>public.mime-type</key>
+				<array>
+					<string>application/x-csv-document</string> <!-- ??? -->
+				</array>
+			</dict>
 		</dict>
 		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>odg</string>
-			</array>
-			<key>CFBundleTypeMIMETypes</key>
+			<key>UTTypeConformsTo</key>
 			<array>
-				<string>application/vnd.oasis.opendocument.graphics</string>
+				<string>public.data</string>
+				<string>public.content</string>
 			</array>
-			<key>CFBundleTypeIconFile</key>
-			<string>oasis-drawing.icns</string>
-			<key>CFBundleTypeName</key>
-			<string>OpenDocument Drawing</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>LSIsAppleDefaultForType</key>
-			<true/>
+			<key>UTTypeDescription</key>
+			<string>dBASE Document</string>
+			<key>UTTypeIdentifier</key>
+			<string>org.libreoffice.dbf-document</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<array>
+					<string>dbf</string>
+				</array>
+				<key>public.mime-type</key>
+				<array>
+					<string>application/x-dbf-document</string> <!-- ??? -->
+				</array>
+			</dict>
 		</dict>
 		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>sxg</string>
-			</array>
-			<key>CFBundleTypeMIMETypes</key>
+			<key>UTTypeConformsTo</key>
 			<array>
-				<string>application/vnd.sun.xml.writer.global</string>
+				<string>public.data</string>
+				<string>public.content</string>
 			</array>
-			<key>CFBundleTypeIconFile</key>
-			<string>master-document.icns</string>
-			<key>CFBundleTypeName</key>
-			<string>OpenOffice.org 1.0 Master</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>LSIsAppleDefaultForType</key>
-			<true/>
+			<key>UTTypeDescription</key>
+			<string>Lotus 1-2-3 Spreadsheet</string>
+			<key>UTTypeIdentifier</key>
+			<string>org.libreoffice.123-document</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<array>
+					<string>wk1</string>
+					<string>wks</string>
+					<string>123</string>
+				</array>
+				<key>public.mime-type</key>
+				<array>
+					<string>application/vnd.lotus-1-2-3</string>
+					<string>application/vnd.lotus-1-2-3</string>
+					<string>application/vnd.lotus-1-2-3</string>
+				</array>
+			</dict>
 		</dict>
 		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>odm</string>
-			</array>
-			<key>CFBundleTypeMIMETypes</key>
+			<key>UTTypeConformsTo</key>
 			<array>
-				<string>application/vnd.oasis.opendocument.text-master</string>
+				<string>public.data</string>
+				<string>public.content</string>
+				<string>public.image</string>
 			</array>
-			<key>CFBundleTypeIconFile</key>
-			<string>oasis-master-document.icns</string>
-			<key>CFBundleTypeName</key>
-			<string>OpenDocument Master</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>LSIsAppleDefaultForType</key>
-			<true/>
+			<key>UTTypeDescription</key>
+			<string>Computer Graphics Metafile</string>
+			<key>UTTypeIdentifier</key>
+			<string>org.libreoffice.cgm-document</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<array>
+					<string>cgm</string>
+				</array>
+				<key>public.mime-type</key>
+				<array>
+					<string>image/cgm</string>
+				</array>
+			</dict>
 		</dict>
 		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>sxm</string>
-				<string>smf</string>
-			</array>
-			<key>CFBundleTypeMIMETypes</key>
+			<key>UTTypeConformsTo</key>
 			<array>
-				<string>application/vnd.sun.xml.math</string>
-				<string>application/vnd.stardivision.math</string>
+				<string>public.data</string>
+				<string>public.content</string>
+				<string>public.image</string>
 			</array>
-			<key>CFBundleTypeIconFile</key>
-			<string>formula.icns</string>
-			<key>CFBundleTypeName</key>
-			<string>OpenOffice.org 1.0 Formula</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>LSIsAppleDefaultForType</key>
-			<true/>
+			<key>UTTypeDescription</key>
+			<string>AutoCAD Interchange Format</string>
+			<key>UTTypeIdentifier</key>
+			<string>org.libreoffice.dxf-document</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<array>
+					<string>dxf</string>
+				</array>
+				<key>public.mime-type</key>
+				<array>
+					<string>image/vnd.dxf</string>
+				</array>
+			</dict>
 		</dict>
 		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>odf</string>
-			</array>
-			<key>CFBundleTypeMIMETypes</key>
+			<key>UTTypeConformsTo</key>
 			<array>
-				<string>application/vnd.oasis.opendocument.formula</string>
+				<string>public.data</string>
+				<string>public.content</string>
+				<string>public.image</string>
 			</array>
-			<key>CFBundleTypeIconFile</key>
-			<string>oasis-formula.icns</string>
-			<key>CFBundleTypeName</key>
-			<string>OpenDocument Formula</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>LSIsAppleDefaultForType</key>
-			<true/>
-		</dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>stw</string>
-			</array>
-			<key>CFBundleTypeMIMETypes</key>
-			<array>
-				<string>application/vnd.sun.xml.writer.template</string>
-			</array>
-			<key>CFBundleTypeIconFile</key>
-			<string>text-template.icns</string>
-			<key>CFBundleTypeName</key>
-			<string>OpenOffice.org 1.0 Text Template</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>LSIsAppleDefaultForType</key>
-			<true/>
-		</dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>ott</string>
-			</array>
-			<key>CFBundleTypeMIMETypes</key>
-			<array>
-				<string>application/vnd.oasis.opendocument.text-template</string>
-			</array>
-			<key>CFBundleTypeIconFile</key>
-			<string>oasis-text-template.icns</string>
-			<key>CFBundleTypeName</key>
-			<string>OpenDocument Text Template</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>LSIsAppleDefaultForType</key>
-			<true/>
-		</dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>stc</string>
-			</array>
-			<key>CFBundleTypeMIMETypes</key>
-			<array>
-				<string>application/vnd.sun.xml.calc.template</string>
-			</array>
-			<key>CFBundleTypeIconFile</key>
-			<string>spreadsheet-template.icns</string>
-			<key>CFBundleTypeName</key>
-			<string>OpenOffice.org 1.0 Spreadsheet Template</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>LSIsAppleDefaultForType</key>
-			<true/>
-		</dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>ots</string>
-			</array>
-			<key>CFBundleTypeMIMETypes</key>
-			<array>
-				<string>application/vnd.oasis.opendocument.spreadsheet-template</string>
-			</array>
-			<key>CFBundleTypeIconFile</key>
-			<string>oasis-spreadsheet-template.icns</string>
-			<key>CFBundleTypeName</key>
-			<string>OpenDocument Spreadsheet Template</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>LSIsAppleDefaultForType</key>
-			<true/>
-		</dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>sti</string>
-			</array>
-			<key>CFBundleTypeMIMETypes</key>
-			<array>
-				<string>application/vnd.sun.xml.impress.template</string>
-			</array>
-			<key>CFBundleTypeIconFile</key>
-			<string>presentation-template.icns</string>
-			<key>CFBundleTypeName</key>
-			<string>OpenOffice.org 1.0 Presentation Template</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>LSIsAppleDefaultForType</key>
-			<true/>
-		</dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>otp</string>
-			</array>
-			<key>CFBundleTypeMIMETypes</key>
-			<array>
-				<string>application/vnd.oasis.opendocument.presentation-template</string>
-			</array>
-			<key>CFBundleTypeIconFile</key>
-			<string>oasis-presentation-template.icns</string>
-			<key>CFBundleTypeName</key>
-			<string>OpenDocument Presentation Template</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>LSIsAppleDefaultForType</key>
-			<true/>
-		</dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>std</string>
-			</array>
-			<key>CFBundleTypeMIMETypes</key>
-			<array>
-				<string>application/vnd.sun.xml.draw.template</string>
-			</array>
-			<key>CFBundleTypeIconFile</key>
-			<string>drawing-template.icns</string>
-			<key>CFBundleTypeName</key>
-			<string>OpenOffice.org 1.0 Drawing Template</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>LSIsAppleDefaultForType</key>
-			<true/>
-		</dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>otg</string>
-			</array>
-			<key>CFBundleTypeMIMETypes</key>
-			<array>
-				<string>application/vnd.oasis.opendocument.graphics-template</string>
-			</array>
-			<key>CFBundleTypeIconFile</key>
-			<string>oasis-drawing-template.icns</string>
-			<key>CFBundleTypeName</key>
-			<string>OpenDocument Drawing Template</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>LSIsAppleDefaultForType</key>
-			<true/>
-		</dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>odb</string>
-			</array>
-			<key>CFBundleTypeMIMETypes</key>
-			<array>
-				<string>application/vnd.oasis.opendocument.database</string>
-			</array>
-			<key>CFBundleTypeIconFile</key>
-			<string>oasis-database.icns</string>
-			<key>CFBundleTypeName</key>
-			<string>OpenDocument Database</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>LSIsAppleDefaultForType</key>
-			<true/>
-		</dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>wpd</string>
-			</array>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>CFBundleTypeName</key>
-			<string>WordPerfect Document</string>
-	        </dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>pdb</string>
-			</array>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>CFBundleTypeName</key>
-			<string>PalmDoc eBook</string>
-	        </dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>hwp</string>
-			</array>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>CFBundleTypeName</key>
-			<string>Hangul WP 97 Document</string>
-	        </dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>wps</string>
-			</array>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>CFBundleTypeName</key>
-			<string>Microsoft Works for Mac Document (v1 - v4)</string>
-	        </dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>dif</string>
-			</array>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>CFBundleTypeName</key>
-			<string>Data Interchange Format Document</string>
-	        </dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>slk</string>
-			</array>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>CFBundleTypeName</key>
-			<string>SYLK Document</string>
-	        </dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>csv</string>
-			</array>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>CFBundleTypeName</key>
-			<string>Comma-Separated Value Spreadsheet</string>
-	        </dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>dbf</string>
-			</array>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>CFBundleTypeName</key>
-			<string>dBASE Document</string>
-	        </dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>wk1</string>
-				<string>wk2</string>
-				<string>123</string>
-			</array>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>CFBundleTypeName</key>
-			<string>Lotus 1-2-3 Document</string>
-	        </dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>cgm</string>
-			</array>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>CFBundleTypeName</key>
-			<string>Computer Graphics Metafile</string>
-	        </dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>dxf</string>
-			</array>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>CFBundleTypeName</key>
-			<string>AutoCAD Interchange Format</string>
-	        </dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>emf</string>
-			</array>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>CFBundleTypeName</key>
+			<key>UTTypeDescription</key>
 			<string>Windows Enhanced Metafile</string>
-	        </dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>wmf</string>
-			</array>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-			<key>CFBundleTypeName</key>
-			<string>Windows Metafile</string>
-	        </dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>txt</string>
-				<string>TXT</string>
-				<string>text</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>Text file</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>org.openoffice.text</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>OpenOffice.org 1.0 Text</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>org.oasis-open.opendocument.text</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>OpenDocument Text</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>org.openoffice.spreadsheet</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>OpenOffice.org 1.0 Spreadsheet</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>org.oasis-open.opendocument.spreadsheet</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>OpenDocument Spreadsheet</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>org.openoffice.presentation</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>OpenOffice.org 1.0 Presentation</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>org.oasis-open.opendocument.presentation</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>OpenDocument Presentation</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>org.openoffice.graphics</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>OpenOffice.org 1.0 Drawing</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>org.oasis-open.opendocument.graphics</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>OpenDocument Drawing</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>org.openoffice.text-master</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>OpenOffice.org 1.0 Master Document</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>org.oasis-open.opendocument.text-master</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>OpenDocument Master Document</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>org.openoffice.formula</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>OpenOffice.org 1.0 Formula</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>org.oasis-open.opendocument.formula</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>OpenDocument Formula</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>org.openoffice.text-template</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>OpenOffice.org 1.0 Text Template</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>org.oasis-open.opendocument.text-template</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>OpenDocument Text Template</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>org.openoffice.spreadsheet-template</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>OpenOffice.org 1.0 Spreadsheet Template</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>org.oasis-open.opendocument.spreadsheet-template</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>OpenDocument Spreadsheet Template</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>org.openoffice.presentation-template</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>OpenOffice.org 1.0 Presentation Template</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>org.oasis-open.opendocument.presentation-template</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>OpenDocument Presentation Template</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>org.openoffice.graphics-template</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>OpenOffice.org 1.0 Drawing Template</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>org.oasis-open.opendocument.graphics-template</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>OpenDocument DrawingTemplate</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
+			<key>UTTypeIdentifier</key>
+			<string>org.libreoffice.emf-document</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<array>
+					<string>emf</string>
+				</array>
+				<key>public.mime-type</key>
+				<array>
+					<string>image/x-emf</string>
+				</array>
+			</dict>
 		</dict>
 		<dict>
-			<key>LSItemContentTypes</key>
+			<key>UTTypeConformsTo</key>
 			<array>
-				<string>org.oasis-open.opendocument.database</string>
+				<string>public.data</string>
+				<string>public.content</string>
+				<string>public.image</string>
 			</array>
-			<key>CFBundleTypeName</key>
-			<string>OpenDocument Database</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
+			<key>UTTypeDescription</key>
+			<string>Windows Metafile</string>
+			<key>UTTypeIdentifier</key>
+			<string>org.libreoffice.wmf-document</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<array>
+					<string>wmf</string>
+				</array>
+				<key>public.mime-type</key>
+				<array>
+					<string>image/x-wmf</string>
+				</array>
+			</dict>
 		</dict>
 		<dict>
-			<key>LSItemContentTypes</key>
+			<key>UTTypeConformsTo</key>
 			<array>
-				<string>org.oasis-open.opendocument.chart</string>
+				<string>public.data</string>
+				<string>public.content</string>
 			</array>
-			<key>CFBundleTypeName</key>
-			<string>OpenDocument Chart</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
+			<key>UTTypeDescription</key>
+			<string>Plain Text File</string>
+			<key>UTTypeIdentifier</key>
+			<string>public.plain-text</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<array>
+					<string>txt</string>
+				</array>
+				<key>public.mime-type</key>
+				<array>
+					<string>text/plain</string>
+				</array>
+			</dict>
 		</dict>
 		<dict>
-			<key>LSItemContentTypes</key>
+			<key>UTTypeConformsTo</key>
 			<array>
-				<string>public.rtf</string>
+				<string>public.data</string>
+				<string>public.content</string>
 			</array>
-			<key>CFBundleTypeName</key>
+			<key>UTTypeDescription</key>
 			<string>Rich Text Format</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>com.microsoft.word.doc</string>
-				<string>com.microsoft.word.dot</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>Microsoft Word Document</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>org.openxmlformats.wordprocessingml.document</string>
-				<string>org.openxmlformats.wordprocessingml.document.macroenabled</string>
-				<string>org.openxmlformats.wordprocessingml.template</string>
-				<string>org.openxmlformats.wordprocessingml.template.macroenabled</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>Office Open XML Word Processing Document</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>com.microsoft.excel.xls</string>
-				<string>com.microsoft.excel.sheet.binary.macroenabled</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>Microsoft Excel Spreadsheet</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>org.openxmlformats.spreadsheetml.sheet</string>
-				<string>org.openxmlformats.spreadsheetml.sheet.macroenabled</string>
-				<string>org.openxmlformats.spreadsheetml.template</string>
-				<string>org.openxmlformats.spreadsheetml.template.macroenabled</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>Office Open XML Spreadsheet</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>com.microsoft.powerpoint.ppt</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>Microsoft PowerPoint Presentation</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>LSItemContentTypes</key>
-			<array>
-				<string>org.openxmlformats.presentationml.presentation</string>
-				<string>org.openxmlformats.presentationml.presentation.macroenabled</string>
-				<string>org.openxmlformats.presentationml.template</string>
-				<string>org.openxmlformats.presentationml.template.macroenabled</string>
-			</array>
-			<key>CFBundleTypeName</key>
-			<string>Office Open XML Presentation</string>
-			<key>CFBundleTypeRole</key>
-			<string>Editor</string>
-		</dict>
-		<dict>
-			<key>CFBundleTypeExtensions</key>
-			<array>
-				<string>oxt</string>
-			</array>
-			<key>CFBundleTypeMIMETypes</key>
-			<array>
-				<string>application/vnd.openofficeorg.extension</string>
-			</array>
-			<key>CFBundleTypeIconFile</key>
-			<string>extension.icns</string>
-			<key>CFBundleTypeName</key>
-			<string>@PRODUCTNAME@ Extension</string>
-			<key>CFBundleTypeRole</key>
-			<string>Viewer</string>
-			<key>LSIsAppleDefaultForType</key>
-			<true/>
+			<key>UTTypeIdentifier</key>
+			<string>public.rtf</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<array>
+					<string>rtf</string>
+				</array>
+				<key>public.mime-type</key>
+				<array>
+					<string>application/rtf</string>
+				</array>
+			</dict>
 		</dict>
+		
 	</array>
+
 	<key>CFBundleExecutable</key>
 	<string>soffice</string>
 	<key>CFBundleGetInfoString</key>
commit 386bd57745834ed3442c4013efac7d77e80fd977
Author: Tor Lillqvist <tml at collabora.com>
Date:   Sat Sep 20 20:11:38 2014 +0300

    The bundle signature's identifier must equal the bundle identifier
    
    Change-Id: I8230c85555711ea53ab7ec247e01d77f7be589b9

diff --git a/solenv/bin/macosx-codesign-app-bundle b/solenv/bin/macosx-codesign-app-bundle
index 798bf00..40e0963 100755
--- a/solenv/bin/macosx-codesign-app-bundle
+++ b/solenv/bin/macosx-codesign-app-bundle
@@ -102,6 +102,6 @@ done
 
 id=`echo ${MACOSX_APP_NAME} | tr ' ' '-'`
 
-codesign --force --verbose --identifier="${MACOSX_BUNDLE_IDENTIFIER}.$id" $resource_rules --sign "$MACOSX_CODESIGNING_IDENTITY" $entitlements "$APP_BUNDLE"
+codesign --force --verbose --identifier="${MACOSX_BUNDLE_IDENTIFIER}" $resource_rules --sign "$MACOSX_CODESIGNING_IDENTITY" $entitlements "$APP_BUNDLE"
 
 exit 0
commit bccf009a0f47d4b87804ae6c04f90207f9415c27
Author: Tor Lillqvist <tml at collabora.com>
Date:   Sat Sep 20 10:59:47 2014 +0300

    Info.plist is invalid: CFBundleTypeName keys missing
    
    Each dictionary that is an entry in the CFBundleDocumentTypes array
    must have a CFBundleTypeName key.
    
    So split the long list into separate entries with a CFBundleTypeName.
    
    Dropped some weird document types that I seriously doubt we have good
    enough (import) support for.
    
    Drop image types, we should not pretend to be an image editor. That is
    counter-productive. It is fairly pointless to advertise ourselves as
    an XML editor, too, when we open arbitrary XML as simple text.
    
    Drop types mentioned in the entry with LSItemContentTypes.
    
    But actually, I wonder why we can't just drop the
    CFBundleDocumentTypes as it has been documented as obsolete for a long
    time. Is it because the icon entries are missing from the
    corresponding UTExportedTypeDeclarations entries? Need to fix that
    then. (See https://gerrit.libreoffice.org/#/c/6103/ )
    
    Change-Id: I9ed90254be25c39819b6ccf640052ef78a40e964

diff --git a/sysui/desktop/macosx/Info.plist.in b/sysui/desktop/macosx/Info.plist.in
index 0252518..3fdfa3c 100755
--- a/sysui/desktop/macosx/Info.plist.in
+++ b/sysui/desktop/macosx/Info.plist.in
@@ -218,12 +218,36 @@
 			</dict>
 		</dict>
 
+		<!-- Chart documents -->
+		<dict>
+			<key>UTTypeIdentifier</key>
+			<string>org.oasis-open.opendocument.chart</string>
+			<key>UTTypeDescription</key>
+			<string>OpenDocument Chart</string>
+			<key>UTTypeConformsTo</key>
+			<array>
+				<string>public.data</string>
+				<string>public.content</string>
+			</array>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<array>
+					<string>odc</string>
+				</array>
+				<key>public.mime-type</key>
+				<array>
+					<string>application/vnd.oasis.opendocument.chart</string>
+				</array>
+			</dict>
+		</dict>
+
 		<!-- Text master documents -->
 		<dict>
 			<key>UTTypeIdentifier</key>
 			<string>org.openoffice.text-master</string>
 			<key>UTTypeDescription</key>
-			<string>OpenOffice.org 1.0 Master</string>
+			<string>OpenOffice.org 1.0 Master Document</string>
 			<key>UTTypeConformsTo</key>
 			<array>
 				<string>public.data</string>
@@ -1244,138 +1268,445 @@
 		<dict>
 			<key>CFBundleTypeExtensions</key>
 			<array>
-				<string>doc</string>
-				<string>dot</string>
-				<string>rtf</string>
-				<string>html</string>
-				<string>htm</string>
-				<string>pdb</string>
-				<string>xml</string>
-				<string>psw</string>
 				<string>wpd</string>
-				<string>jtd</string>
-				<string>jtt</string>
+			</array>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+			<key>CFBundleTypeName</key>
+			<string>WordPerfect Document</string>
+	        </dict>
+		<dict>
+			<key>CFBundleTypeExtensions</key>
+			<array>
+				<string>pdb</string>
+			</array>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+			<key>CFBundleTypeName</key>
+			<string>PalmDoc eBook</string>
+	        </dict>
+		<dict>
+			<key>CFBundleTypeExtensions</key>
+			<array>
 				<string>hwp</string>
+			</array>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+			<key>CFBundleTypeName</key>
+			<string>Hangul WP 97 Document</string>
+	        </dict>
+		<dict>
+			<key>CFBundleTypeExtensions</key>
+			<array>
 				<string>wps</string>
+			</array>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+			<key>CFBundleTypeName</key>
+			<string>Microsoft Works for Mac Document (v1 - v4)</string>
+	        </dict>
+		<dict>
+			<key>CFBundleTypeExtensions</key>
+			<array>
 				<string>dif</string>
-				<string>dbf</string>
-				<string>xls</string>
-				<string>xlw</string>
-				<string>xlt</string>
+			</array>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+			<key>CFBundleTypeName</key>
+			<string>Data Interchange Format Document</string>
+	        </dict>
+		<dict>
+			<key>CFBundleTypeExtensions</key>
+			<array>
 				<string>slk</string>
+			</array>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+			<key>CFBundleTypeName</key>
+			<string>SYLK Document</string>
+	        </dict>
+		<dict>
+			<key>CFBundleTypeExtensions</key>
+			<array>
 				<string>csv</string>
+			</array>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+			<key>CFBundleTypeName</key>
+			<string>Comma-Separated Value Spreadsheet</string>
+	        </dict>
+		<dict>
+			<key>CFBundleTypeExtensions</key>
+			<array>
+				<string>dbf</string>
+			</array>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+			<key>CFBundleTypeName</key>
+			<string>dBASE Document</string>
+	        </dict>
+		<dict>
+			<key>CFBundleTypeExtensions</key>
+			<array>
 				<string>wk1</string>
 				<string>wk2</string>
 				<string>123</string>
-				<string>pxl</string>
-				<string>ppt</string>
-				<string>pps</string>
-				<string>pot</string>
+			</array>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+			<key>CFBundleTypeName</key>
+			<string>Lotus 1-2-3 Document</string>
+	        </dict>
+		<dict>
+			<key>CFBundleTypeExtensions</key>
+			<array>
 				<string>cgm</string>
+			</array>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+			<key>CFBundleTypeName</key>
+			<string>Computer Graphics Metafile</string>
+	        </dict>
+		<dict>
+			<key>CFBundleTypeExtensions</key>
+			<array>
 				<string>dxf</string>
+			</array>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+			<key>CFBundleTypeName</key>
+			<string>AutoCAD Interchange Format</string>
+	        </dict>
+		<dict>
+			<key>CFBundleTypeExtensions</key>
+			<array>
 				<string>emf</string>
-				<string>eps</string>
-				<string>met</string>
-				<string>pct</string>
-				<string>sgf</string>
-				<string>sgv</string>
-				<string>svm</string>
+			</array>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+			<key>CFBundleTypeName</key>
+			<string>Windows Enhanced Metafile</string>
+	        </dict>
+		<dict>
+			<key>CFBundleTypeExtensions</key>
+			<array>
 				<string>wmf</string>
-				<string>bmp</string>
-				<string>gif</string>
-				<string>jpg</string>
-				<string>jpeg</string>
-				<string>jfif</string>
-				<string>jif</string>
-				<string>jpe</string>
-				<string>pbm</string>
-				<string>pcx</string>
-				<string>pgm</string>
-				<string>png</string>
-				<string>ppm</string>
-				<string>psd</string>
-				<string>ras</string>
-				<string>tga</string>
-				<string>tif</string>
-				<string>tiff</string>
-				<string>xbm</string>
-				<string>xpm</string>
-				<string>pcd</string>
-				<string>oth</string>
-				<string>mml</string>
 			</array>
 			<key>CFBundleTypeRole</key>
 			<string>Editor</string>
-		</dict>
+			<key>CFBundleTypeName</key>
+			<string>Windows Metafile</string>
+	        </dict>
 		<dict>
 			<key>CFBundleTypeExtensions</key>
 			<array>
 				<string>txt</string>
 				<string>TXT</string>
 				<string>text</string>
-				<string>*</string>
 			</array>
 			<key>CFBundleTypeName</key>
-			<string>TEXT</string>
-			<key>CFBundleTypeOSTypes</key>
+			<string>Text file</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
 			<array>
-				<string>TEXT</string>
-				<string>sEXT</string>
-				<string>ttro</string>
+				<string>org.openoffice.text</string>
 			</array>
+			<key>CFBundleTypeName</key>
+			<string>OpenOffice.org 1.0 Text</string>
 			<key>CFBundleTypeRole</key>
 			<string>Editor</string>
 		</dict>
 		<dict>
 			<key>LSItemContentTypes</key>
 			<array>
-				<string>org.openoffice.text</string>
 				<string>org.oasis-open.opendocument.text</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>OpenDocument Text</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>org.openoffice.spreadsheet</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>OpenOffice.org 1.0 Spreadsheet</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>org.oasis-open.opendocument.spreadsheet</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>OpenDocument Spreadsheet</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>org.openoffice.presentation</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>OpenOffice.org 1.0 Presentation</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>org.oasis-open.opendocument.presentation</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>OpenDocument Presentation</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>org.openoffice.graphics</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>OpenOffice.org 1.0 Drawing</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>org.oasis-open.opendocument.graphics</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>OpenDocument Drawing</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>org.openoffice.text-master</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>OpenOffice.org 1.0 Master Document</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>org.oasis-open.opendocument.text-master</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>OpenDocument Master Document</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>org.openoffice.formula</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>OpenOffice.org 1.0 Formula</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>org.oasis-open.opendocument.formula</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>OpenDocument Formula</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>org.openoffice.text-template</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>OpenOffice.org 1.0 Text Template</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>org.oasis-open.opendocument.text-template</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>OpenDocument Text Template</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>org.openoffice.spreadsheet-template</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>OpenOffice.org 1.0 Spreadsheet Template</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>org.oasis-open.opendocument.spreadsheet-template</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>OpenDocument Spreadsheet Template</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>org.openoffice.presentation-template</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>OpenOffice.org 1.0 Presentation Template</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>org.oasis-open.opendocument.presentation-template</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>OpenDocument Presentation Template</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>org.openoffice.graphics-template</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>OpenOffice.org 1.0 Drawing Template</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>org.oasis-open.opendocument.graphics-template</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>OpenDocument DrawingTemplate</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>org.oasis-open.opendocument.database</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>OpenDocument Database</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>org.oasis-open.opendocument.chart</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>OpenDocument Chart</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>public.rtf</string>
-				<string>public.html</string>
-				<string>public.jpeg</string>
-				<string>public.tiff</string>
-				<string>public.png</string>
-				<string>public.xbitmap-image</string>
-				<string>com.adobe.encapsulated-postscript</string>
-				<string>com.microsoft.bmp</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>Rich Text Format</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>com.microsoft.word.doc</string>
-				<string>com.microsoft.excel.xls</string>
-				<string>com.microsoft.powerpoint.ppt</string>
+				<string>com.microsoft.word.dot</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>Microsoft Word Document</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>org.openxmlformats.wordprocessingml.document</string>
 				<string>org.openxmlformats.wordprocessingml.document.macroenabled</string>
 				<string>org.openxmlformats.wordprocessingml.template</string>
 				<string>org.openxmlformats.wordprocessingml.template.macroenabled</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>Office Open XML Word Processing Document</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
+				<string>com.microsoft.excel.xls</string>
+				<string>com.microsoft.excel.sheet.binary.macroenabled</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>Microsoft Excel Spreadsheet</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>org.openxmlformats.spreadsheetml.sheet</string>
 				<string>org.openxmlformats.spreadsheetml.sheet.macroenabled</string>
-				<string>com.microsoft.excel.sheet.binary.macroenabled</string>
 				<string>org.openxmlformats.spreadsheetml.template</string>
 				<string>org.openxmlformats.spreadsheetml.template.macroenabled</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>Office Open XML Spreadsheet</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
+				<string>com.microsoft.powerpoint.ppt</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>Microsoft PowerPoint Presentation</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+		</dict>
+		<dict>
+			<key>LSItemContentTypes</key>
+			<array>
 				<string>org.openxmlformats.presentationml.presentation</string>
 				<string>org.openxmlformats.presentationml.presentation.macroenabled</string>
 				<string>org.openxmlformats.presentationml.template</string>
 				<string>org.openxmlformats.presentationml.template.macroenabled</string>
 			</array>
+			<key>CFBundleTypeName</key>
+			<string>Office Open XML Presentation</string>
 			<key>CFBundleTypeRole</key>
 			<string>Editor</string>
 		</dict>


More information about the Libreoffice-commits mailing list