diff --git a/app/lnd/config/index.js b/app/lnd/config/index.js index 0b79a5e6..b7db80d5 100644 --- a/app/lnd/config/index.js +++ b/app/lnd/config/index.js @@ -2,10 +2,17 @@ // Mac OS X: /Users/user/Library/Application Support/Lnd/tls.cert // Linux: ~/.lnd/tls.cert // Windows: TODO find out where cert is located for windows machine -import { userInfo } from 'os' +import { userInfo, platform } from 'os' + +var loc; +if (platform() == 'linux') { + loc = `/home/${userInfo().username}/.lnd/tls.cert` +} else if (platform() == 'darwin') { + loc = `/Users/${userInfo().username}/Library/Application Support/lnd/tls.cert` +} export default { lightningRpc: `${__dirname}/rpc.proto`, lightningHost: 'localhost:10009', - cert: `/Users/${userInfo().username}/Library/Application Support/Lnd/tls.cert` + cert: loc } diff --git a/resources/bin/linux/lnd b/resources/bin/linux/lnd deleted file mode 100755 index 0c2bfab6..00000000 Binary files a/resources/bin/linux/lnd and /dev/null differ diff --git a/resources/bin/win32/lnd.exe b/resources/bin/win32/lnd.exe deleted file mode 100755 index c6202c8f..00000000 Binary files a/resources/bin/win32/lnd.exe and /dev/null differ