Commit 0dbee8e0 authored by Sukhbir Singh's avatar Sukhbir Singh Committed by Mike Perry
Browse files

Add support for Instantbird

parent 1d2a2b28
......@@ -31,6 +31,7 @@ TorProcessService.prototype =
kServiceName : "Tor Launcher Process Service",
kClassID: Components.ID("{FE7B4CAF-BCF4-4848-8BFF-EFA66C9AFDA1}"),
kThunderbirdID: "{3550f703-e582-4d05-9a08-453d09bdfdc6}",
kInstantbirdID: "{33cb9019-c295-46dd-be21-8c4936574bee}",
kTorLauncherExtPath: "tor-launcher@torproject.org", // This could vary.
kPrefPromptAtStartup: "extensions.torlauncher.prompt_at_startup",
......@@ -517,9 +518,9 @@ TorProcessService.prototype =
var topDir;
var appInfo = Cc["@mozilla.org/xre/app-info;1"]
.getService(Ci.nsIXULAppInfo);
if (appInfo.ID == this.kThunderbirdID)
if (appInfo.ID == this.kThunderbirdID || appInfo.ID == this.kInstantbirdID)
{
// For Thunderbird, paths are relative to this extension's folder.
// For Thunderbird and Instantbird, paths are relative to this extension's folder.
topDir = Cc["@mozilla.org/file/directory_service;1"]
.getService(Ci.nsIProperties).get("ProfD", Ci.nsIFile);
topDir.append("extensions");
......
......@@ -25,7 +25,15 @@
<Description>
<em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>
<em:minVersion>10.0</em:minVersion>
<em:maxVersion>23.*</em:maxVersion>
<em:maxVersion>24.*</em:maxVersion>
</Description>
</em:targetApplication>
<!-- instantbird -->
<em:targetApplication>
<Description>
<em:id>{33cb9019-c295-46dd-be21-8c4936574bee}</em:id>
<em:minVersion>1.4</em:minVersion>
<em:maxVersion>1000</em:maxVersion>
</Description>
</em:targetApplication>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment