aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Brunschwig <[email protected]>2021-05-02 16:33:34 +0200
committerPatrick Brunschwig <[email protected]>2021-05-02 16:33:34 +0200
commitb6b80a7f6e4ad340005099eed00f309bc67dbc61 (patch)
tree62282f7ac6bfe41048a829148f0c42b6f48186db
parent2820b5492f4d4cea918e8f622cbe3ddda4d0816a (diff)
downloadenigmail-b6b80a7f6e4ad340005099eed00f309bc67dbc61.tar.gz
enigmail-b6b80a7f6e4ad340005099eed00f309bc67dbc61.tar.bz2
enigmail-b6b80a7f6e4ad340005099eed00f309bc67dbc61.zip
make sure that homedir matches environment type
-rw-r--r--package/cryptoAPI/gnupg-agent.jsm5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/cryptoAPI/gnupg-agent.jsm b/package/cryptoAPI/gnupg-agent.jsm
index b45c84d4..d0218ba2 100644
--- a/package/cryptoAPI/gnupg-agent.jsm
+++ b/package/cryptoAPI/gnupg-agent.jsm
@@ -712,8 +712,9 @@ var EnigmailGpgAgent = {
if (!homeDir) homeDir = "C:\\gnupg";
}
-
- if (!homeDir) homeDir = esvc.environment.get("HOME") + "/.gnupg";
+ else {
+ if (!homeDir) homeDir = esvc.environment.get("HOME") + "/.gnupg";
+ }
return homeDir;
},