Fungování této stránky je z důvodu údržby dočasně omezeno. Pokud žádný článek nápovědy nevyřeší váš problém a potřebujete se zeptat na další řešení, napište nám na Twitter @FirefoxSupport nebo Reddit /r/firefox.

Prohledat stránky podpory

Vyhněte se podvodům. Za účelem poskytnutí podpory vás nikdy nežádáme, abyste zavolali nebo poslali SMS na nějaké telefonní číslo nebo abyste sdělili své osobní údaje. Jakékoliv podezřelé chování nám prosím nahlaste pomocí odkazu „Nahlásit zneužití“.

Zjistit více

Need to add mime type and association

  • 3 odpovědi
  • 4 mají tento problém
  • 10 zobrazení
  • Poslední odpověď od dumdidadida

more options

I need to add a new mime_type (application/f4m+xml) and make its handler the mozilla flash plugin. I used to use the mime-edit add-on to do this, but it no longer works. I can add an association for a new extension to an external program, but how do I add an association for the flash plugin?

I need to add a new mime_type (application/f4m+xml) and make its handler the mozilla flash plugin. I used to use the mime-edit add-on to do this, but it no longer works. I can add an association for a new extension to an external program, but how do I add an association for the flash plugin?

Všechny odpovědi (3)

more options

Hi,

Please see this.

Adding MIME

more options

Thanks for the help. I shut down firefox, modified mimetype.rdf as shown below, then restarted firefox. Firefox recognized the alwaysAsk setting (it now pops up a dialog box asking "Would you like to save this file?"), but it doesn't ask whether I'd like it associated with plugin. Also, there's a new entry in Edit/Preferences/Applications ("Adobe HDS file"), but the drop-down for "Action" includes only "Save file" and "Use other ...". The latter brings up a file-system browser. Do I need another line in the new mimeTypes.rdf entry that specifies a plug-in? If so, what's the syntax?

> diff mimeTypes.rdf.bak mimeTypes.rdf
52a53,59
>   <RDF:Description RDF:about="urn:mimetype:application/f4m+xml"
>                    NC:fileExtensions="f4m"
>                    NC:alwaysAsk="true"
>                    NC:value="application/f4m+xml"
>                    NC:description="Adobe HDS file">
>     <NC:handlerProp RDF:resource="urn:mimetype:handler:application/f4m+xml"/>
>   </RDF:Description>
68a76
>     <RDF:li RDF:resource="urn:mimetype:application/f4m+xml"/>

Upravil uživatel cor-el dne

more options

Actually, using the Firefox specific mimeTypes.rdf is not feasible as you can see from the link. You can try to create an XML file for the new MIME type, register it on the system and finally associate it with the desired application as the default. Hopefully Firefox will automatically pick it up at the next startup. Please see this. The xdg-utils tools are usually used for this. Posting in the distribution specific forum would also be helpful.

xdg-mime