Skip to content

Command line tool for getting and setting a default browser (HTTP handler) in Mac OS X

License

Notifications You must be signed in to change notification settings

gtmtechltd/defaultbrowser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Command line tool for getting and setting a default browser (HTTP handler) in Mac OS X

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 86.4%
  • Makefile 13.6%