Hi all,
Up to recently we had been using our own RDF file in the profile directory for storing our prefs. If it didn't exist we would create it and write out the defaults. This was easy enough with the nsIProperties.get() method and the "ProfD" property.
However the default file is getting much larger and now we want to just install it.
We don't much mind whether the file is in the profile directory or the XPIs new "extension/defaults" path. The question is how we get/set the file to install/use it.
We either need to access the installed chrome path "chrome://app/content/pref.rdf" and copyto() the profile directory or just get R/W access directly in the "extension/defaults" path.
However neither has a property for the directory-service how do we get either of these two locations to access our prefs file?
On a side note, does anyone know equally how to copy files into the "/chrome/icons/default" path. The docs are quite strict on not assuming string paths so how can we get that path to copy in our icons?
Cheers,
Neil Stansbury www.RedbackSystems.com _____________________________ Next Generation Web Platforms _______________________________________________ Mozilla-xpcom mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-xpcom
