PDA

View Full Version : no mimetypes in firefox 1.5


wpyung
24th November 2006, 05:11 PM
I am running 32bit firefox 1.5 on fc6 x_86_64

this is how I did it
cd /usr/bin
cp firefox firefox32
gedit firefox32
comment out these lines (i.e. put a # in front of them)

if [ -x "/usr/lib64/firefox-1.5.0.8/firefox-bin" ]
then
MOZ_LIB_DIR="/usr/lib64"
fi


It seems to run OK and flash and java are installed OK as plugins

Is this the best way to do it ?


How do I add extra mimetype entries ?

I see no entries under
Edit, preferences, downloads, view and edit actions

I have found and deleted the file mimeTypes.rdf but this doesn't help.

Does anyone know how to add a new mimetype (Action), or have an example syntax for the mimeTypes.rdf file ?

I am trying to load the console for Legato which contains instructions to edit .mime.types and .mailcap files but I can't find them.

Dies
24th November 2006, 06:51 PM
If you type about:config in the address bar in Firefox it will bring up a page where you can add in actions.
I've only ever needed to use this for one thing which was launching mplayer for certain streams so I can't really help you with syntax or anything like that but the Mozilla site should have some documentation on this.

wpyung
27th November 2006, 10:25 AM
I've worked out how to do it.

When prompted:

You have chosed to open

xxxxx.xxx

What should Firefox do with this file ?

under Open with, choose other and browse to the application

then check Do this automtaically for files like this from now on.


This makes the relevant entry in mimeTypes.rdf


below is an example of the file that resulted

<?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:Description RDF:about="urn:mimetype:application/x-java-jnlp-file"
NC:description="JNLP file"
NC:value="application/x-java-jnlp-file"
NC:editable="true">
<NC:handlerProp RDF:resource="urn:mimetype:handler:application/x-java-jnlp-file"/>
</RDF:Description>
<RDF:Description RDF:about="urn:mimetypes">
<NC:MIME-types RDF:resource="urn:mimetypes:root"/>
</RDF:Description>
<RDF:Description RDF:about="urn:mimetype:handler:application/x-java-jnlp-file"
NC:alwaysAsk="false"
NC:saveToDisk="false"
NC:useSystemDefault="false"
NC:handleInternal="false">
<NC:externalApplication RDF:resource="urn:mimetype:externalApplication:application/x-java-jnlp-file"/>
</RDF:Description>
<RDF:Seq RDF:about="urn:mimetypes:root">
<RDF:li RDF:resource="urn:mimetype:application/x-java-jnlp-file"/>
</RDF:Seq>
<RDF:Description RDF:about="urn:mimetype:externalApplication:application/x-java-jnlp-file"
NC:path="/opt/java/jre1.5.0_09/javaws/javaws"
NC:prettyName="javaws" />
</RDF:RDF>

Yingkou Travel Photos on Instagram - Hangzhou Travel Photos - Cancun -