I am developing an extension that will be using a Java library (see
http://developer.mozilla.org/en/docs/Java_in_Firefox_Extensions). I
need a way to programmatically know the absolute path of the directory
where the extension is deployed (on any platform). A call to
document.location in a XUL file gets the Firefox installation
directory. Is there some other service or method call that will return
the path to the user's profile or even better, the path to my current
extension?
Thank you in advance for your time.
-GS
> directory. Is there some other service or method call that will return
> the path to the user's profile or even better, the path to my current
> extension?
Use the __LOCATION__ trick documented here:
--BDS
-GS
-GS
_______________________________________________
dev-extensions mailing list
dev-ext...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-extensions
____________________________________________________________________________________
Sponsored Link
Mortgage rates near 39yr lows.
$510k for $1,698/mo. Calculate new payment!
www.LowerMyBills.com/lre
I do not recommend using this method. nsIExtensionManager is a very fluid
interface, and __LOCATION__ is pretty much guaranteed to exist.
--BDS
----- Original Message ----
From: Benjamin Smedberg <benj...@smedbergs.us>
To: dev-ext...@lists.mozilla.org
Sent: Monday, November 20, 2006 11:47:20 AM
Subject: Re: Getting the current profile or extension folder path
--BDS