Sat Jun 20 10:50:23 CEST 2009

the md5:// links in firefox

Currently it's necessary to edit mimetypes.rdf manually.

  <RDF:Seq RDF:about="urn:schemes:root">
    <RDF:li RDF:resource="urn:scheme:md5"/>

  <RDF:Description RDF:about="urn:scheme:md5"
    <NC:handlerProp RDF:resource="urn:scheme:handler:md5"/>

  <RDF:Description RDF:about="urn:scheme:handler:md5"
    <NC:externalApplication RDF:resource="urn:scheme:externalApplication:md5"/>
    <NC:possibleApplication RDF:resource="urn:handler:local:/home/tom/bin/md5"/>

  <RDF:Description RDF:about="urn:handler:local:/home/tom/bin/md5"
                   NC:path="/home/tom/bin/md5" />

  <RDF:Description RDF:about="urn:scheme:externalApplication:md5"
                   NC:path="/home/tom/bin/md5" />

In addition you need to add it in the "about:config" panel.

network.protocol-handler.external.md5 = true
network.protocol-handler.expose.md5 = true
network.protocol-handler.app.md5 = ...

Doesn't work..
What a piece of opaque crap.

Ok I got it to go again but in a frustrated manner so I don't know
exactly what happened, but at this moment the configuration above,
with alwaysAsk set to true did work after I made sure that the script
was executable.  I don't know if the about:config stuff is still
necessary.  It's filled in my current config, but didn't have any
effect when I filled it in.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=428658