mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-12-25 01:26:45 +00:00
test for windows gpg home
This commit is contained in:
parent
f455d94a01
commit
d2621eb87d
1 changed files with 4 additions and 1 deletions
|
@ -172,7 +172,10 @@ public class PGPUtils {
|
|||
}
|
||||
|
||||
if(isWindows()) {
|
||||
return new File(System.getenv("APPDATA"), "gnupg");
|
||||
File winHome = new File(System.getenv("APPDATA"), "gnupg");
|
||||
if(winHome.exists()) {
|
||||
return winHome;
|
||||
}
|
||||
}
|
||||
|
||||
return new File(System.getProperty("user.home"), ".gnupg");
|
||||
|
|
Loading…
Reference in a new issue