really fix icon path (xpi needs to be unpacked)

This commit is contained in:
foudfou 2011-09-08 01:47:54 +02:00
parent 11a238f21b
commit 0afe494dbf
2 changed files with 3 additions and 2 deletions

View File

@ -2,10 +2,10 @@
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
<Description about="urn:mozilla:install-manifest">
<em:id>moztray@foudil.fr</em:id>
<em:unpack>false</em:unpack>
<em:unpack>true</em:unpack> <!-- needed for embedded icons -->
<em:type>2</em:type>
<em:name>Mozilla Tray</em:name>
<em:version>0.0.1</em:version>
<em:version>0.1.0</em:version>
<em:creator>Foudil BRÉTEL</em:creator>
<em:contributor>Hua Luo, Francesco Solero (Firetray original authors)</em:contributor>
<em:homepageURL>https://github.com/foudfou/moztray</em:homepageURL>

View File

@ -47,6 +47,7 @@ mozt.Utils = {
let registeryValue = Cc['@mozilla.org/chrome/chrome-registry;1']
.getService(Ci.nsIChromeRegistry)
.convertChromeURL(uri).spec;
LOG(registeryValue);
if (/^file:/.test(registeryValue))
registeryValue = this._urlToPath(registeryValue);