문제

I am trying to learn how to write firefox extensions. I download an HelloWorld example from here but I can't figure out how to register it.

I found my profiles extension folder (Easy since I use the latest Firefox version) but couldn't really understand what is this "Pointer file" that I need to create (tried a shortcut but it didn't work).

What is this "Pointer File"? How can I register it correctly? I am using Win 7 if matters.

Thank You.

도움이 되었습니까?

해결책

You have to create a file in the extensions folder with the ID of the add-on as name (e.g. helloworld@mozilla.doslash.org). This file should contain only one line which is the absolute path to the folder where the add-on is contained (e.g. C:\\my\path\to\addon (or however windows paths look like)).

다른 팁

The add-on name is located inside of the install.rdf file. Usually, it's a GUID string, but for the demo it will look like an email address.

The filename will need to match that exactly and be free of any .txt extensions, so be careful your text editor doesn't automatically give it an extension.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top