Bug 299458 - Install ChatZilla icon when running in XULRunner.

ChatZilla only.
r=samuel
This commit is contained in:
silver%warwickcompsoc.co.uk 2005-09-26 20:34:03 +00:00
Родитель 27caea093b
Коммит 7c92265e92
1 изменённых файлов: 18 добавлений и 6 удалений

Просмотреть файл

@ -411,14 +411,26 @@ function initIcons()
/* when installing on Mozilla, the XPI has the power to put the icons where
* they are needed - in Firefox, it doesn't. So we move them here, instead.
* In XULRunner, things are more fun, as we're not an extension.
*/
if (client.host != "Firefox")
var sourceDir;
if (client.host == "Firefox")
{
sourceDir = getSpecialDirectory("ProfD");
sourceDir.append("extensions");
sourceDir.append("{" + __cz_guid + "}");
sourceDir.append("defaults");
}
else if (client.host == "XULrunner")
{
sourceDir = getSpecialDirectory("resource:app");
sourceDir.append("chrome");
sourceDir.append("icons");
}
else
{
return;
var sourceDir = getSpecialDirectory("ProfD");
sourceDir.append("extensions");
sourceDir.append("{" + __cz_guid + "}");
sourceDir.append("defaults");
}
var destDir = getSpecialDirectory("AChrom");
destDir.append("icons");