[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.



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


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

More information about the Jslib mailing list