• Stars
    star
    293
  • Rank 137,222 (Top 3 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created almost 10 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Command line tool for getting and setting a default browser (HTTP handler) in macOS

defaultbrowser

Command line tool for setting the default browser (HTTP handler) in macOS X.

Install

Build it:

make

Install it into your executable path:

make install

Usage

Set the default browser with, e.g.:

defaultbrowser chrome

Running defaultbrowser without arguments lists available HTTP handlers and shows the current setting.

How does it work?

The code uses the macOS Launch Services API.

Additional Resources

License

MIT