Linh
Linh

Reputation: 1022

Firefox extension development - reference to extension path

I develop a firefox extension for configuration printer automatically. I want to create a configuration file at where extension was installed. can anybody help me?

Upvotes: 0

Views: 522

Answers (1)

sdwilsh
sdwilsh

Reputation: 4682

You do not actually want to store it where your add-on is installed because if you ever need to update the add-on, the configuration file will be overwritten. What you really want to do is to place the configuration file in the profile directory or in a folder you create inside the profile directory.

Upvotes: 3

Related Questions