mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-10 08:37:05 +00:00
match new behaviour in bitcoin core 28 for default windows data dir
This commit is contained in:
+2
-1
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user