зеркало из https://github.com/mozilla/pjs.git
Bug 223333 - create sensible default mimeTypes.rdf file to automate opening of common file types
This commit is contained in:
Родитель
18a7f1fb99
Коммит
afef7f6294
|
@ -34,9 +34,18 @@ FILES := \
|
|||
bookmarks.html \
|
||||
localstore.rdf \
|
||||
search.rdf \
|
||||
mimeTypes.rdf \
|
||||
$(NULL)
|
||||
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
FILES += win/mimeTypes.rdf
|
||||
else
|
||||
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
||||
FILES += mac/mimeTypes.rdf
|
||||
else
|
||||
FILES += mimeTypes.rdf
|
||||
endif
|
||||
endif
|
||||
|
||||
libs:: $(FILES)
|
||||
$(INSTALL) $^ $(DIST)/bin/defaults/profile
|
||||
$(INSTALL) $^ $(DIST)/bin/defaults/profile/US
|
||||
|
|
|
@ -0,0 +1,272 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:NC="http://home.netscape.com/NC-rdf#"
|
||||
xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
||||
|
||||
<Description about="urn:mimetypes">
|
||||
<NC:MIME-types>
|
||||
<Seq about="urn:mimetypes:root">
|
||||
<RDF:li resource="urn:mimetype:application/vnd.ms-excel"/>
|
||||
<RDF:li resource="urn:mimetype:application/msword"/>
|
||||
<RDF:li resource="urn:mimetype:application/vnd.ms-powerpoint"/>
|
||||
<RDF:li resource="urn:mimetype:application/pdf"/>
|
||||
<RDF:li resource="urn:mimetype:video/avi"/>
|
||||
<RDF:li resource="urn:mimetype:video/quicktime"/>
|
||||
<RDF:li resource="urn:mimetype:video/x-ms-wmv"/>
|
||||
<RDF:li resource="urn:mimetype:video/x-ms-asf"/>
|
||||
<RDF:li resource="urn:mimetype:video/mpeg"/>
|
||||
<RDF:li resource="urn:mimetype:audio/x-pn-realaudio"/>
|
||||
<RDF:li resource="urn:mimetype:audio/x-m4a"/>
|
||||
<RDF:li resource="urn:mimetype:audio/x-mp3"/>
|
||||
<RDF:li resource="urn:mimetype:audio/mpeg"/>
|
||||
<RDF:li resource="urn:mimetype:audio/x-ms-wma"/>
|
||||
<RDF:li resource="urn:mimetype:audio/wav"/>
|
||||
<RDF:li resource="urn:mimetype:audio/mid"/>
|
||||
|
||||
</Seq>
|
||||
</NC:MIME-types>
|
||||
</Description>
|
||||
|
||||
<!-- Microsoft Excel -->
|
||||
<RDF:Description about="urn:mimetype:application/vnd.ms-excel"
|
||||
NC:value="application/vnd.ms-excel"
|
||||
NC:editable="true"
|
||||
NC:fileExtensions="xls"
|
||||
NC:description="Microsoft Excel Worksheet">
|
||||
<NC:handlerProp resource="urn:mimetype:handler:application/vnd.ms-excel"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:handler:application/vnd.ms-excel"
|
||||
NC:alwaysAsk="false"
|
||||
NC:useSystemDefault="true">
|
||||
<NC:externalApplication resource="urn:mimetype:externalApplication:application/vnd.ms-excel"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:externalApplication:application/vnd.ms-excel"
|
||||
NC:prettyName=""
|
||||
NC:path="" />
|
||||
|
||||
<!-- Microsoft Word -->
|
||||
<RDF:Description about="urn:mimetype:application/msword"
|
||||
NC:value="application/msword"
|
||||
NC:editable="true">
|
||||
<NC:handlerProp resource="urn:mimetype:handler:application/msword"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:handler:application/msword"
|
||||
NC:alwaysAsk="false"
|
||||
NC:useSystemDefault="true">
|
||||
<NC:externalApplication resource="urn:mimetype:externalApplication:application/msword"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:externalApplication:application/msword"
|
||||
NC:prettyName=""
|
||||
NC:path="" />
|
||||
|
||||
<!-- Microsoft Word -->
|
||||
<RDF:Description about="urn:mimetype:application/vnd.ms-powerpoint"
|
||||
NC:value="application/vnd.ms-powerpoint"
|
||||
NC:editable="true">
|
||||
<NC:handlerProp resource="urn:mimetype:handler:application/vnd.ms-powerpoint"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:handler:application/vnd.ms-powerpoint"
|
||||
NC:alwaysAsk="false"
|
||||
NC:useSystemDefault="true">
|
||||
<NC:externalApplication resource="urn:mimetype:externalApplication:application/vnd.ms-powerpoint"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:externalApplication:application/vnd.ms-powerpoint"
|
||||
NC:prettyName=""
|
||||
NC:path="" />
|
||||
|
||||
<!-- Adobe Acrobat -->
|
||||
<RDF:Description about="urn:mimetype:application/pdf"
|
||||
NC:value="application/pdf"
|
||||
NC:editable="true">
|
||||
<NC:handlerProp resource="urn:mimetype:handler:application/pdf"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:handler:application/pdf"
|
||||
NC:alwaysAsk="false"
|
||||
NC:useSystemDefault="true">
|
||||
<NC:externalApplication resource="urn:mimetype:externalApplication:application/pdf"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:externalApplication:application/pdf"
|
||||
NC:prettyName=""
|
||||
NC:path="" />
|
||||
|
||||
<!-- Video for Windows -->
|
||||
<RDF:Description about="urn:mimetype:video/avi"
|
||||
NC:value="video/avi"
|
||||
NC:editable="true">
|
||||
<NC:handlerProp resource="urn:mimetype:handler:video/avi"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:handler:video/avi"
|
||||
NC:alwaysAsk="false"
|
||||
NC:useSystemDefault="true">
|
||||
<NC:externalApplication resource="urn:mimetype:externalApplication:video/avi"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:externalApplication:video/avi"
|
||||
NC:prettyName=""
|
||||
NC:path="" />
|
||||
|
||||
<!-- Quicktime -->
|
||||
<RDF:Description about="urn:mimetype:video/quicktime"
|
||||
NC:value="video/quicktime"
|
||||
NC:editable="true">
|
||||
<NC:handlerProp resource="urn:mimetype:handler:video/quicktime"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:handler:video/quicktime"
|
||||
NC:alwaysAsk="false"
|
||||
NC:useSystemDefault="true">
|
||||
<NC:externalApplication resource="urn:mimetype:externalApplication:video/quicktime"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:externalApplication:video/quicktime"
|
||||
NC:prettyName=""
|
||||
NC:path="" />
|
||||
|
||||
<!-- Windows Media -->
|
||||
<RDF:Description about="urn:mimetype:video/x-ms-wmv"
|
||||
NC:value="video/x-ms-wmv"
|
||||
NC:editable="true">
|
||||
<NC:handlerProp resource="urn:mimetype:handler:video/x-ms-wmv"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:handler:video/x-ms-wmv"
|
||||
NC:alwaysAsk="false"
|
||||
NC:useSystemDefault="true">
|
||||
<NC:externalApplication resource="urn:mimetype:externalApplication:video/x-ms-wmv"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:externalApplication:video/x-ms-wmv"
|
||||
NC:prettyName=""
|
||||
NC:path="" />
|
||||
|
||||
<RDF:Description about="urn:mimetype:video/x-ms-asf"
|
||||
NC:value="video/x-ms-asf"
|
||||
NC:editable="true">
|
||||
<NC:handlerProp resource="urn:mimetype:handler:video/x-ms-asf"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:handler:video/x-ms-asf"
|
||||
NC:alwaysAsk="false"
|
||||
NC:useSystemDefault="true">
|
||||
<NC:externalApplication resource="urn:mimetype:externalApplication:video/x-ms-asf"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:externalApplication:video/x-ms-asf"
|
||||
NC:prettyName=""
|
||||
NC:path="" />
|
||||
|
||||
<!-- MPEG Video -->
|
||||
<RDF:Description about="urn:mimetype:video/mpeg"
|
||||
NC:value="video/mpeg"
|
||||
NC:editable="true">
|
||||
<NC:handlerProp resource="urn:mimetype:handler:video/mpeg"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:handler:video/mpeg"
|
||||
NC:alwaysAsk="false"
|
||||
NC:useSystemDefault="true">
|
||||
<NC:externalApplication resource="urn:mimetype:externalApplication:video/mpeg"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:externalApplication:video/mpeg"
|
||||
NC:prettyName=""
|
||||
NC:path="" />
|
||||
|
||||
<!-- RealMedia -->
|
||||
<RDF:Description about="urn:mimetype:audio/x-pn-realaudio"
|
||||
NC:value="audio/x-pn-realaudio"
|
||||
NC:editable="true">
|
||||
<NC:handlerProp resource="urn:mimetype:handler:audio/x-pn-realaudio"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:handler:audio/x-pn-realaudio"
|
||||
NC:alwaysAsk="false"
|
||||
NC:useSystemDefault="true">
|
||||
<NC:externalApplication resource="urn:mimetype:externalApplication:audio/x-pn-realaudio"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:externalApplication:audio/x-pn-realaudio"
|
||||
NC:prettyName=""
|
||||
NC:path="" />
|
||||
|
||||
<!-- MPEG4 -->
|
||||
<RDF:Description about="urn:mimetype:audio/x-m4a"
|
||||
NC:value="audio/x-m4a"
|
||||
NC:editable="true">
|
||||
<NC:handlerProp resource="urn:mimetype:handler:audio/x-m4a"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:handler:audio/x-m4a"
|
||||
NC:alwaysAsk="false"
|
||||
NC:useSystemDefault="true">
|
||||
<NC:externalApplication resource="urn:mimetype:externalApplication:audio/x-m4a"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:externalApplication:audio/x-m4a"
|
||||
NC:prettyName=""
|
||||
NC:path="" />
|
||||
|
||||
<!-- MP3 -->
|
||||
<RDF:Description about="urn:mimetype:audio/x-mp3"
|
||||
NC:value="audio/x-mp3"
|
||||
NC:editable="true">
|
||||
<NC:handlerProp resource="urn:mimetype:handler:audio/x-mp3"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:handler:audio/x-mp3"
|
||||
NC:alwaysAsk="false"
|
||||
NC:useSystemDefault="true">
|
||||
<NC:externalApplication resource="urn:mimetype:externalApplication:audio/x-mp3"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:externalApplication:audio/x-mp3"
|
||||
NC:prettyName=""
|
||||
NC:path="" />
|
||||
|
||||
<!-- MPEG Audio -->
|
||||
<RDF:Description about="urn:mimetype:audio/mpeg"
|
||||
NC:value="audio/mpeg"
|
||||
NC:editable="true">
|
||||
<NC:handlerProp resource="urn:mimetype:handler:audio/mpeg"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:handler:audio/mpeg"
|
||||
NC:alwaysAsk="false"
|
||||
NC:useSystemDefault="true">
|
||||
<NC:externalApplication resource="urn:mimetype:externalApplication:audio/mpeg"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:externalApplication:audio/mpeg"
|
||||
NC:prettyName=""
|
||||
NC:path="" />
|
||||
|
||||
<!-- Windows Media Audio -->
|
||||
<RDF:Description about="urn:mimetype:audio/x-ms-wma"
|
||||
NC:value="audio/x-ms-wma"
|
||||
NC:editable="true">
|
||||
<NC:handlerProp resource="urn:mimetype:handler:audio/x-ms-wma"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:handler:audio/x-ms-wma"
|
||||
NC:alwaysAsk="false"
|
||||
NC:useSystemDefault="true">
|
||||
<NC:externalApplication resource="urn:mimetype:externalApplication:audio/x-ms-wma"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:externalApplication:audio/x-ms-wma"
|
||||
NC:prettyName=""
|
||||
NC:path="" />
|
||||
|
||||
<!-- WAV -->
|
||||
<RDF:Description about="urn:mimetype:audio/wav"
|
||||
NC:value="audio/wav"
|
||||
NC:editable="true">
|
||||
<NC:handlerProp resource="urn:mimetype:handler:audio/wav"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:handler:audio/wav"
|
||||
NC:alwaysAsk="false"
|
||||
NC:useSystemDefault="true">
|
||||
<NC:externalApplication resource="urn:mimetype:externalApplication:audio/wav"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:externalApplication:audio/wav"
|
||||
NC:prettyName=""
|
||||
NC:path="" />
|
||||
|
||||
<!-- MIDI -->
|
||||
<RDF:Description about="urn:mimetype:audio/mid"
|
||||
NC:value="audio/mid"
|
||||
NC:editable="true">
|
||||
<NC:handlerProp resource="urn:mimetype:handler:audio/mid"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:handler:audio/mid"
|
||||
NC:alwaysAsk="false"
|
||||
NC:useSystemDefault="true">
|
||||
<NC:externalApplication resource="urn:mimetype:externalApplication:audio/mid"/>
|
||||
</RDF:Description>
|
||||
<RDF:Description about="urn:mimetype:externalApplication:audio/mid"
|
||||
NC:prettyName=""
|
||||
NC:path="" />
|
||||
|
||||
</RDF>
|
Загрузка…
Ссылка в новой задаче