[tor-commits] [tor-launcher/master] Bug 19568: Set CurProcD for Thunderbird/Instantbird
gk at torproject.org
gk at torproject.org
Wed Jul 13 11:43:37 UTC 2016
commit 44c1cc246e8736e88906c74058f2c582aa6178ed
Author: Sukhbir Singh <sukhbir at torproject.org>
Date: Mon Jul 4 11:59:34 2016 -0400
Bug 19568: Set CurProcD for Thunderbird/Instantbird
For Thunderbird/Instantbird, the CurProcD (topDir) is not browser/,
so we need to iterate one level less than Firefox.
---
src/components/tl-process.js | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/components/tl-process.js b/src/components/tl-process.js
index 4f9928a..8e42feb 100644
--- a/src/components/tl-process.js
+++ b/src/components/tl-process.js
@@ -31,6 +31,8 @@ TorProcessService.prototype =
{
kContractID : "@torproject.org/torlauncher-process-service;1",
kServiceName : "Tor Launcher Process Service",
+ kThunderbirdID: "{3550f703-e582-4d05-9a08-453d09bdfdc6}",
+ kInstantbirdID: "{33cb9019-c295-46dd-be21-8c4936574bee}",
kClassID: Components.ID("{FE7B4CAF-BCF4-4848-8BFF-EFA66C9AFDA1}"),
kTorLauncherExtPath: "tor-launcher at torproject.org", // This could vary.
@@ -873,6 +875,14 @@ TorProcessService.prototype =
// Because topDir points to Contents/Resources/browser on Mac OS,
// we need to go up 3 levels.
let tbbBrowserDepth = (TorLauncherUtil.isMac) ? 3 : 1;
+ if ((appInfo.ID == this.kThunderbirdID) ||
+ (appInfo.ID == this.kInstantbirdID))
+ {
+ // On Thunderbird/Instantbird, the topDir is the root dir and not
+ // browser/, so we need to iterate one level less than Firefox.
+ --tbbBrowserDepth;
+ }
+
while (tbbBrowserDepth > 0)
{
let didRemove = (topDir.leafName != ".");
More information about the tor-commits
mailing list