Command line tool to set the default http handler in OSX. Uses up to date APIs, compatible with macOS 12 and later.
swift build -c release
List http handlers:
> default-browser
* firefox
google_chrome
safari
Change default http handler
default-browser google_chrome
This cli uses thhe NSWorkspace
APIs rather than the deprecated Launch Services APIs.