Skip to content

Commit

Permalink
fix: opening log was broken
Browse files Browse the repository at this point in the history
  • Loading branch information
Fonta1n3 committed Nov 4, 2024
1 parent be7627c commit c6016dc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions FullyNoded-Server/Views/BitcoinCore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down Expand Up @@ -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 }
}

Expand Down

0 comments on commit c6016dc

Please sign in to comment.