BlockchainCommons / GordianServer-macOS

Tor-protected full-node GordianServer for macOS
Other
63 stars 8 forks source link

No Config File on MacBook Pro (2021) / M1 Pro #170

Open shannona opened 2 years ago

shannona commented 2 years ago

The config file does not pop up on new MacBook Pro when the "Bitcoin Core Config" option is selected. Totally silent failure.

The Tor Config pops up fine, so it's not a problem with TextEdit, but the error is very consistent. Nothing in the system.log file. Happy to report out any other info on this.

Fonta1n3 commented 2 years ago

what is your Data Directory path in GS settings?

shannona commented 2 years ago

/user/ShannonA/Library/Application Support/Bitcoin

Fonta1n3 commented 2 years ago

what do you get if you run: open "/user/ShannonA/Library/Application Support/Bitcoin"?

Fonta1n3 commented 2 years ago

The only obvious thing that has changed is generally the path would be Users/ShannonA/Library/Application Support/Bitcoin not user/.... but I do not see how that would effect the open command as it simply takes in the path and wraps it in qoutes.

shannona commented 2 years ago

Shoot, I got it wrong, it is Users. So, just the same.

Fonta1n3 commented 2 years ago

so what happens when you open a terminal and run:

open "/Users/ShannonA/Library/Application Support/Bitcoin/bitcoin.conf"

shannona commented 2 years ago

Good question! We have an error that shows up only on my new MacBook Pro:

$ open "/Users/ShannonA/Library/Application Support/Bitcoin/bitcoin.conf"
No application knows how to open URL file:///Users/ShannonA/Library/Application%20Support/Bitcoin/bitcoin.conf (Error Domain=NSOSStatusErrorDomain Code=-10814 "kLSApplicationNotFoundErr: E.g. no application claims the file" UserInfo={_LSLine=1479, _LSFunction=runEvaluator}).
ChristopherA commented 2 years ago

Should probably use open -a TextEdit file /path/filename.ext

shannona commented 2 years ago

That does indeed make it work correctly from the command line.

On Wed, Nov 17, 2021 at 8:05 AM Christopher Allen @.***> wrote:

Should probably use open -a TextEdit file /path/filename.ext

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BlockchainCommons/GordianServer-macOS/issues/170#issuecomment-971827192, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIPGZTV5HT5FWDYKBMZ2FLUMPVE3ANCNFSM5IFWP7YA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Fonta1n3 commented 2 years ago

The better solution is to use Swifts FileManager class rather than scripts to open files. In this branch there are a lot of cases where scripts are used when native Swift code would do the job just fine, I had gone a long way to refactoring that in my rpcauth PR.