Command line tool for getting and setting a default browser (HTTP handler) in Mac OS X
Objective-C Makefile
Switch branches/tags
Nothing to show
Clone or download
Latest commit dba87e7 Feb 14, 2018
Permalink
Failed to load latest commit information.
src
LICENSE Initial commit Jul 1, 2014
Makefile
README.md

README.md

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.

License

MIT