kerma / defaultbrowser

Command line tool for getting and setting a default browser (HTTP handler) in macOS
MIT License
314 stars 36 forks source link

Safari #21

Open rossoneris opened 3 years ago

rossoneris commented 3 years ago

I have tried to use the defaultbrowser, but when trying to set safari as default it just show "Safari is not available as an HTTP handler" Running Big sur 11.4

anton-patrushev commented 2 years ago

@rossoneris defaultbrowser safari worked for me nicely!

But when I tried to run something like this, it failed:

$ defaultbrowser 'Safari Technology Preview'

Seems like it's not possible for some reason to make Safari Technology Preview (canary Safari) default via this command line util :(

anton-patrushev commented 2 years ago

UPD: My bad, I realized it's possible to run

$ defaultbrowser

and it would print a list of aliases-names for all recognized installed browsers on your machine. So I was able to make 'Safari Technology Preview' default browser by running this:

$ defaultbrowser safaritechnologypreview

So no issues for me!