mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2025-01-26 02:11:10 +00:00
match new behaviour in bitcoin core 28 for default windows data dir
This commit is contained in:
parent
7a5f4ff294
commit
d7511c62bf
1 changed files with 2 additions and 1 deletions
|
@ -914,7 +914,8 @@ public class ServerPreferencesController extends PreferencesDetailController {
|
|||
if(osType == OsType.MACOS) {
|
||||
return new File(System.getProperty("user.home") + "/Library/Application Support/Bitcoin");
|
||||
} else if(osType == OsType.WINDOWS) {
|
||||
return new File(System.getenv("APPDATA") + "/Bitcoin");
|
||||
File oldDir = new File(System.getenv("APPDATA") + "/Bitcoin");
|
||||
return oldDir.exists() ? oldDir : new File(System.getenv("LOCALAPPDATA") + "/Bitcoin");
|
||||
} else {
|
||||
return new File(System.getProperty("user.home") + "/.bitcoin");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue