Eric Plaster wrote:

> In my opinion, the chrome folder shouldn't be used for anything 
> writable.  Use the users profile directory for that.  What I did in my 
> project (rpgtools.mozdev.org) is create a "rpgtools" directory in the 
> users profile directory and store all my prefs/other rdfs in that.
> 
> If you still want a global solution, I think the best policy is to ask 
> the user where you want to install the application (in this case it's 
> configuration).  This would probably take the form of a "initial state" 
> of the application, and ask for the location to install it's resources 
> (most likely c:\program files\company on windows and /usr/local/company 
> on linux and anywhere on the mac).
> 
> Hope this helps!
> -eric
Hmm.. I've taken look at contents.rdf in /rpgtools/rpgtools_common/resources/content/

because it's not clear how do I register the overlay from profile dir. 
But I can't find anything usefull. currently we do it like this:

-------------------------------------------------
<?xml version="1.0"?> <RDF:RDF 
xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
             xmlns:chrome="http://www.mozilla.org/rdf/chrome#";> <RDF:Seq 
about="urn:mozilla:package:root"> <RDF:li 
resource="urn:mozilla:package:mozgest"/> </RDF:Seq> <RDF:Description 
about="urn:mozilla:package:mozgest"
         chrome:displayName="Mouse Gestures"
         chrome:author="Andy Edmonds"
         chrome:name="mozgest"> </RDF:Description>

<RDF:Seq about="urn:mozilla:overlays">
<RDF:li resource="chrome://navigator/content/navigator.xul"/>
<RDF:li resource="chrome://communicator/content/pref/preftree.xul"/>
</RDF:Seq>

<RDF:Seq about="chrome://navigator/content/navigator.xul">
<RDF:li>chrome://mozgest/content/mozgestOverlay.xul</RDF:li>
</RDF:Seq>

<RDF:Seq about="chrome://communicator/content/pref/preftree.xul">
<RDF:li>chrome://mozgest/content/pref/mozgestPrefOverlay.xul</RDF:li>
</RDF:Seq>

</RDF:RDF>
-------------------------------------------------

So the question is: How do I register overlay from profile dir. (I am 
able to install in profile.)

--mondo


Reply via email to