Henrik Gemal wrote:
Is it possible from inside an extension to get the path of an application from a mimetype

That's not possible in general, especially not portably. Note that it would throw the arguments to be passed to that application away in any case.

Why do you need the app?

var mimeSvc = Components.classes["@mozilla.org/uriloader/external-helper-app-service;1"].getService(Components.interfaces.nsIMIMEService);

fwiw you should not use that contractid, use @mozilla.org/mime;1 (IIRC).

var p = x.preferredApplicationHandler.path);

This works iff the user specified a non-default application for the file type.
_______________________________________________
mozilla-embedding mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to