From 8462ff1019e73388502a29629db9c2e63ad81f71 Mon Sep 17 00:00:00 2001 From: woodser Date: Wed, 15 May 2024 09:59:22 -0400 Subject: [PATCH] document changing default application folder --- docs/create-mainnet.md | 10 ++++++++++ docs/deployment-guide.md | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/docs/create-mainnet.md b/docs/create-mainnet.md index 2ae09fa9..95a4334d 100644 --- a/docs/create-mainnet.md +++ b/docs/create-mainnet.md @@ -44,6 +44,16 @@ Hardcode the public key(s) in these files: - [FilterManager.java](https://github.com/haveno-dex/haveno/blob/1bf83ecb8baa06b6bfcc30720f165f20b8f77025/core/src/main/java/haveno/core/filter/FilterManager.java#L117) - [PrivateNotificationManager.java](https://github.com/haveno-dex/haveno/blob/mainnet_placeholders/core/src/main/java/haveno/core/alert/PrivateNotificationManager.java#L110) +## Change the default folder name for Haveno application data + +To avoid data corruption by using Haveno with other networks, change the default folder name for Haveno's application data with your network, by setting [DEFAULT_APP_NAME](https://github.com/haveno-dex/haveno/blob/1aa62863f49a15e8322a8d96e58dc0ed37dec4eb/core/src/main/java/haveno/core/app/HavenoExecutable.java#L85) in HavenoExecutable.java. + +For example, change "Haveno" to "HavenoX", which will use the application folder: + +- Linux: ~/.local/share/HavenoX/ +- macOS: ~/Library/Application Support/HavenoX/ +- Windows: ~\AppData\Roaming\HavenoX\ + ## Start the seed nodes Rebuild for the previous changes to the source code to take effect: `make skip-tests`. diff --git a/docs/deployment-guide.md b/docs/deployment-guide.md index 23a8993b..6851b54e 100644 --- a/docs/deployment-guide.md +++ b/docs/deployment-guide.md @@ -132,6 +132,16 @@ To set the network's filter object: > **Note** > If all seed nodes are restarted at the same time, arbitrators and the filter object will become unregistered and will need to be re-registered. +## Change the default folder name for Haveno application data + +To avoid data corruption by using Haveno with other networks, change the default folder name for Haveno's application data with your network, by setting [DEFAULT_APP_NAME](https://github.com/haveno-dex/haveno/blob/1aa62863f49a15e8322a8d96e58dc0ed37dec4eb/core/src/main/java/haveno/core/app/HavenoExecutable.java#L85) in HavenoExecutable.java. + +For example, change "Haveno" to "HavenoX", which will use the application folder: + +- Linux: ~/.local/share/HavenoX/ +- macOS: ~/Library/Application Support/HavenoX/ +- Windows: ~\AppData\Roaming\HavenoX\ + ## Set the network's release date Optionally set the network's approximate release date by setting `RELEASE_DATE` in HavenoUtils.java.