Add-ons/dataDirectory

From MozillaWiki
< Add-ons
Revision as of 00:04, 11 September 2013 by WeirdAl (talk | contribs) (Created page with "= Addon Data Directory = Addons may want to store settings or other data on the local computer. In the past, add-ons would use preferences or an arbitrary location on the us...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Addon Data Directory

Addons may want to store settings or other data on the local computer. In the past, add-ons would use preferences or an arbitrary location on the user's filesystem. Preferences are less than ideal, so each Addon object should provide built-in helpers to access a directory specific to it. Then the addon's internal code can refer to the filesystem in a common location.