From b3b3d0f999fd8f28e75c46215fccd8a067c5a3e0 Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Mon, 30 Jul 2018 12:28:47 +0200 Subject: [PATCH] fix(windows): read lnd config from %LOCALAPPDATA% Lnd stores it's config files in %LOCALAPPDATA% on windows. Ensure that we use this path in our lookups. Fix #628 --- app/lnd/config/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lnd/config/index.js b/app/lnd/config/index.js index 020b4626..b24204bd 100644 --- a/app/lnd/config/index.js +++ b/app/lnd/config/index.js @@ -34,7 +34,7 @@ switch (plat) { lndBin = 'lnd' break case 'win32': - lndDataDir = join(process.env.APPDATA, 'Local', 'Lnd') + lndDataDir = join(process.env.LOCALAPPDATA, 'Local', 'Lnd') lndBin = 'lnd.exe' break default: