Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Learn More

mimetype action

  • Inga svar
  • 1 har detta problem
  • 1 visning
more options

I have created a new mimetype according to this documentation:

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/desktop_migration_and_administration_guide/file_formats

Everything works fine, in a file browser the application starts when I click on the file. It also works when I get the file over a simple web page and firefox adds the new mimetype to <profile>/mimeTypes.rdf. I reduced the file to the new lines and that is what firefox adds to the file:

<RDF:RDF xmlns:NC="http://home.netscape.com/NC-rdf#"

        xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
 <RDF:Seq RDF:about="urn:mimetypes:root">
   <RDF:li RDF:resource="urn:mimetype:application/x-tcsimxml"/>
 </RDF:Seq>
 <RDF:Description RDF:about="urn:mimetype:application/x-tcsimxml"
                  NC:value="application/x-tcsimxml">
   <NC:handlerProp RDF:resource="urn:mimetype:handler:application/x-tcsimxml"/>
 </RDF:Description>
 <RDF:Description RDF:about="urn:mimetype:handler:application/x-tcsimxml"
                  NC:useSystemDefault="true"
                  NC:alwaysAsk="false" />
 <RDF:Description RDF:about="urn:mimetypes">
   <NC:MIME-types RDF:resource="urn:mimetypes:root"/>
 </RDF:Description>

</RDF:RDF>


But if a complex web application offers such a file, only the download option is offered, as shown in the attachment firefox-only-download-offered.jpg. Only when I add two mor lines to mimeTypes.rdf so that it looks like this:

<RDF:RDF xmlns:NC="http://home.netscape.com/NC-rdf#"

        xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
 <RDF:Seq RDF:about="urn:mimetypes:root">
   <RDF:li RDF:resource="urn:mimetype:application/x-tcsimxml"/>
 </RDF:Seq>
 <RDF:Description RDF:about="urn:mimetype:application/x-tcsimxml"
                  NC:value="application/x-tcsimxml"
                  NC:fileExtensions="tcsimxml">
   <NC:handlerProp RDF:resource="urn:mimetype:handler:application/x-tcsimxml"/>
 </RDF:Description>
 <RDF:Description RDF:about="urn:mimetype:handler:application/x-tcsimxml"
                  NC:useSystemDefault="false"
                  NC:alwaysAsk="false" >
   <NC:externalApplication RDF:resource="urn:mimetype:externalApplication:application/x-tcsimxml"/>
 </RDF:Description>
 <RDF:Description RDF:about="urn:mimetypes">
   <NC:MIME-types RDF:resource="urn:mimetypes:root"/>
 </RDF:Description>

</RDF:RDF>

then I get my application opened.

Is there any way not to edit mimeTypes.rdf by hand, but to tell firefox to add the complete statement to the file?

Or is there a way to provide a system wide default mimeTypes.rdf that will be used when a new profile is created? I didn't find a documentation for that.

Thank you in advance for your help!

I have created a new mimetype according to this documentation: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/desktop_migration_and_administration_guide/file_formats Everything works fine, in a file browser the application starts when I click on the file. It also works when I get the file over a simple web page and firefox adds the new mimetype to <profile>/mimeTypes.rdf. I reduced the file to the new lines and that is what firefox adds to the file: <?xml version="1.0"?> <RDF:RDF xmlns:NC="http://home.netscape.com/NC-rdf#" xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <RDF:Seq RDF:about="urn:mimetypes:root"> <RDF:li RDF:resource="urn:mimetype:application/x-tcsimxml"/> </RDF:Seq> <RDF:Description RDF:about="urn:mimetype:application/x-tcsimxml" NC:value="application/x-tcsimxml"> <NC:handlerProp RDF:resource="urn:mimetype:handler:application/x-tcsimxml"/> </RDF:Description> <RDF:Description RDF:about="urn:mimetype:handler:application/x-tcsimxml" NC:useSystemDefault="true" NC:alwaysAsk="false" /> <RDF:Description RDF:about="urn:mimetypes"> <NC:MIME-types RDF:resource="urn:mimetypes:root"/> </RDF:Description> </RDF:RDF> But if a complex web application offers such a file, only the download option is offered, as shown in the attachment firefox-only-download-offered.jpg. Only when I add two mor lines to mimeTypes.rdf so that it looks like this: <?xml version="1.0"?> <RDF:RDF xmlns:NC="http://home.netscape.com/NC-rdf#" xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <RDF:Seq RDF:about="urn:mimetypes:root"> <RDF:li RDF:resource="urn:mimetype:application/x-tcsimxml"/> </RDF:Seq> <RDF:Description RDF:about="urn:mimetype:application/x-tcsimxml" NC:value="application/x-tcsimxml" NC:fileExtensions="tcsimxml"> <NC:handlerProp RDF:resource="urn:mimetype:handler:application/x-tcsimxml"/> </RDF:Description> <RDF:Description RDF:about="urn:mimetype:handler:application/x-tcsimxml" NC:useSystemDefault="false" NC:alwaysAsk="false" > <NC:externalApplication RDF:resource="urn:mimetype:externalApplication:application/x-tcsimxml"/> </RDF:Description> <RDF:Description RDF:about="urn:mimetypes"> <NC:MIME-types RDF:resource="urn:mimetypes:root"/> </RDF:Description> </RDF:RDF> then I get my application opened. Is there any way not to edit mimeTypes.rdf by hand, but to tell firefox to add the complete statement to the file? Or is there a way to provide a system wide default mimeTypes.rdf that will be used when a new profile is created? I didn't find a documentation for that. Thank you in advance for your help!
Bifogade skärmdumpar

Ändrad av axel62