wok-current view thunderbird/stuff/mimeTypes.rdf @ rev 13150
get-flash-plugin: be busybox/sed compatible
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 11 11:13:01 2012 +0200 (2012-07-11) |
parents | |
children |
line source
1 <?xml version="1.0"?>
3 <!--
4 This file is used as a persistent data store for helper application
5 information about both MIME type and protocol scheme helpers.
7 The root of the data are the two containers
8 <RDF:Seq about="urn:mimetypes:root"/> and <RDF:Seq about="urn:schemes:root"/>.
10 These contain one <RDF:li/> entry per MIME type/protocol. Each <RDF:li/> entry
11 corresponds to a "urn:<class>:<type>" resource, where <class> is either
12 "mimetype" or "scheme" and <type> is either a MIME type in "major/minor" format
13 or a scheme. For example, for HTML we would have "urn:mimetype:text/html",
14 while for mailto: we would have "urn:scheme:mailto".
16 Typically, this resource will be in the <RDF:Description/> node which has the
17 corresponding "about" attribute.
19 Each "urn:<class>:<type>" resource can have the following properties:
21 NC:Value - the MIME type or scheme string
22 NC:editable - a "true" or "false" depending on whether this entry is
23 editable
24 NC:description - a description of the type ("HTML Document" for text/html)
25 NC:fileExtensions - for MIME types, there will be one of these properties
26 per extension that corresponds to this MIME type,
27 each one having a single extension as its value.
28 NC:handlerProp - the way the type should be handled. This corresponds to a
29 "urn:<class>:handler:<type>" resource. Eg, the way HTML is
30 handled would be stored in the
31 "urn:mimetype:handler:text/html" resource.
33 Each "urn:<class>:handler:<type>" resource can have the following properties:
35 NC:useSystemDefault - "true" if we should handle per default OS setting,
36 "false" or not set otherwise
37 NC:saveToDisk - "true" if the data should be saved to disk, "false" or not
38 set otherwise.
39 (Note - if both of these are false, that means "open in helper app")
40 NC:alwaysAsk - "true" if the user should always be prompted before handling
41 data of this type, false otherwise.
42 NC:externalApplication - the preferred helper application to use for this
43 type. This corresponds to a
44 "urn:<class>:externalApplication:<type>" resource.
45 NC:possibleApplication - a helper application that can be used for this type.
46 Since there can be multiple possible applications,
47 there can be multiple assertions in the graph with
48 this property for a given handler resource.
50 Each "urn:<class>:externalApplication:<type>" resource, and each resource
51 that represents a possible application, can have the following property:
53 NC:prettyName - the "pretty name" of the application ("Acrobat Reader" for
54 /usr/bin/acroread, eg).
56 If the resource represents a local application, then it can have the following
57 property:
59 NC:path - the path to the application on the local filesystem, for example
60 /usr/bin/test or C:\windows\system32\cmd.exe.
62 If the resource represents a web application, then it can have the following
63 property:
65 NC:uriTemplate - a URI pointing to the web application to which the type
66 should be handed off, with %s in the template representing
67 the place where the content should be inserted. For example,
68 here is a URI template for a service that lets you email
69 an address in a mailto: link:
70 http://www.example.com/sendmail?link=%s
71 -->
73 <RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
74 xmlns:NC="http://home.netscape.com/NC-rdf#">
76 <RDF:Seq RDF:about="urn:schemes:root">
77 <RDF:li RDF:resource="urn:scheme:http"/>
78 </RDF:Seq>
80 <RDF:Description RDF:about="urn:scheme:externalApplication:http"
81 NC:prettyName="midori"
82 NC:path="/usr/bin/midori" />
83 <RDF:Description RDF:about="urn:scheme:handler:http"
84 NC:alwaysAsk="false">
85 <NC:externalApplication RDF:resource="urn:scheme:externalApplication:http"/>
86 <NC:possibleApplication RDF:resource="urn:handler:local:/usr/bin/midori"/>
87 </RDF:Description>
89 <RDF:Description RDF:about="urn:schemes">
90 <NC:Protocol-Schemes RDF:resource="urn:schemes:root"/>
91 </RDF:Description>
93 <RDF:Description RDF:about="urn:scheme:http"
94 NC:value="http">
95 <NC:handlerProp RDF:resource="urn:scheme:handler:http"/>
96 </RDF:Description>
98 <RDF:Description RDF:about="urn:mimetypes">
99 <NC:MIME-types RDF:resource="urn:mimetypes:root"/>
100 </RDF:Description>
102 <RDF:Seq RDF:about="urn:mimetypes:root">
103 </RDF:Seq>
104 <RDF:Description RDF:about="urn:root"
105 NC:en-US_defaultHandlersVersion="-1"
106 NC:fr_defaultHandlersVersion="-1" />
107 <RDF:Description RDF:about="urn:handler:local:/usr/bin/midori"
108 NC:prettyName="midori"
109 NC:path="/usr/bin/midori" />
110 </RDF:RDF>