winhowes
winhowes

Reputation: 8065

Icon not showing in firefox add-on manager

I have a new Firefox add-on with the following directory structure:

/
   package.json
   data/
       icons/
           icon48.png

In my package.json file I have this:

 "icon": "data/icons/icon48.png",

(among other things). When I run jpm run as recommended by the Firefox add-on docs, the extension loads but the icon is not visible in the add-on manager. Any idea what I'm missing? I have been referencing this page: https://developer.mozilla.org/en-US/Add-ons/SDK/Tools/package_json#icon, but no luck.

Thanks!

Upvotes: 5

Views: 866

Answers (2)

I still have this bug with jpm 1.0.6 version. I solved it adding the next icon path:

{

  "id": "jid1-AKuBexDY5zJsIQ@jetpack",
  "icon": "resource://jid1-akubexdy5zjsiq-at-jetpack/data/images/icon48.png",

}

Note that the "path" is similar to the "id" field but there are not capital letters

Upvotes: 3

Aylen
Aylen

Reputation: 3554

Apparently this is a bug. See this issue in the jpm repository.

For me, moving the icon image to the root directory (i.e. the same path as package.json) and renaming it "icon.png" fixed the problem.

Upvotes: 4

Related Questions