[Jslib] Getting location of extension jarfile in Mozilla and Firefox

Pete Collins pete at mozdevgroup.com
Wed Oct 6 18:36:23 EDT 2004



Sudhakar Chandra wrote:

> Hi,
>
> Is there anything in JSLib that would give me the location of an 
> extension.jar file in both Mozilla and Firefox?
>
> I know that in Mozilla I can use DirUtils.getUserChromeDir() will give 
> me the location of chrome.  Unfortunately, I can't use this in Firefox 
> because there the jar is stored under extensions/ and not chrome/


Yea, extensions w/ some randomly generated folders.

eg:

~/.mozilla/firefox/iztq6gmd.default/extensions/{DF8E5247-8E0A-4de6-B393-0735A39DFD80}/chrome/jslib.jar

Does DirUtils.getMozUserHomeDir() get you to - 
"~/.mozilla/firefox/iztq6gmd.default/"  ??

--pete

-- 
Pete Collins - Founder, Mozdev Group Inc.
www.mozdevgroup.com
Mozilla Software Development Solutions 





More information about the Jslib mailing list