зеркало из https://github.com/mozilla/gecko-dev.git
Bug 299458 - Install ChatZilla icon when running in XULRunner.
ChatZilla only. r=samuel
This commit is contained in:
Родитель
bca20a57af
Коммит
3317b151eb
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче