From c6016dc0cb89e1233f6ef1474d57e7648bdb3788 Mon Sep 17 00:00:00 2001 From: Fontaine Date: Mon, 4 Nov 2024 10:33:54 -0500 Subject: [PATCH] fix: opening log was broken --- FullyNoded-Server/Views/BitcoinCore.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/FullyNoded-Server/Views/BitcoinCore.swift b/FullyNoded-Server/Views/BitcoinCore.swift index c785cbcc..dc124ef1 100644 --- a/FullyNoded-Server/Views/BitcoinCore.swift +++ b/FullyNoded-Server/Views/BitcoinCore.swift @@ -160,7 +160,7 @@ struct BitcoinCore: View { } .padding(.leading) Button { - openFile(file: "bitcoin.conf") + openFile(file: "\(Defaults.shared.dataDir)/bitcoin.conf") } label: { Text("bitcoin.conf") } @@ -428,8 +428,7 @@ struct BitcoinCore: View { } private func openFile(file: String) { - let d = Defaults.shared.dataDir - let env = ["FILE": "\(d)/\(file)"] + let env = ["FILE": "\(file)"] openConf(script: .openFile, env: env, args: []) { _ in } }