Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On macOS, add an Application shortcut #147

Open
bitcoin-tools opened this issue Mar 1, 2024 · 6 comments
Open

On macOS, add an Application shortcut #147

bitcoin-tools opened this issue Mar 1, 2024 · 6 comments

Comments

@bitcoin-tools
Copy link
Owner

https://superuser.com/questions/1659291/how-do-i-create-an-icon-as-a-shortcut-on-macos-to-run-specific-shell-command

@bitcoin-tools
Copy link
Owner Author

bitcoin-tools commented Mar 1, 2024

Possible solution with AppleScript. Open Automator, create Application, run AppleScript, paste the script below, save to the Desktop as a .app file.

tell application id "com.apple.Terminal"
  set T to do script "bitcoin-qt & disown && exit 0"
  repeat
    delay 0.05
    if not busy of T then exit repeat
  end repeat
  close its front window
  quit
end tell

@bitcoin-tools
Copy link
Owner Author

Then, need to change the icon for the desktop shortcut, which will be tricky to automate.
https://apple.stackexchange.com/questions/369/can-i-change-the-application-icon-of-an-automator-script

@bitcoin-tools bitcoin-tools changed the title On macOS, the desktop shortcut is broken On macOS, add a desktop shortcut Mar 1, 2024
@bitcoin-tools bitcoin-tools changed the title On macOS, add a desktop shortcut On macOS, add an Application shortcut Mar 8, 2024
@bitcoin-tools
Copy link
Owner Author

A desktop shortcut doesn't make sense on macOS. It should be an .app package in /Applications.

@bitcoin-tools
Copy link
Owner Author

the bundle name should be com.nodebuilder.bitcoin

@bitcoin-tools
Copy link
Owner Author

Does this really make sense to do rather than just install the macOS dmg from Bitcoin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant