LayerTwo-Labs / sidesail

A work-in-progress sidechain UI.
MIT License
6 stars 4 forks source link

drivechain-server: use user-space data directory for bdk-cli data #230

Closed arnemolland closed 1 week ago

arnemolland commented 1 week ago

Resolves #226 by retrieving the common data directory for the runtime OS.

On Linux and macOS, we first look up XDG_DATA_HOME before defaulting to the common directories ($HOME/.local/share on Linux, $HOME/Library/Application Support on macOS).

On Windows, use the APPDATA environment variable, this should always be set.