default-browser

command module
v1.0.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

README

default-browser

This is a tool that will set the default browser for the current user on a macOS device.

Usage

/opt/macadmins/bin/default-browser --identifier com.google.chrome

To set other browsers as the default, use the following identifiers:

  • Google Chrome (the default if no identifier is passed): com.google.chrome
  • Safari: com.apple.safari
  • Firefox: org.mozilla.firefox
  • MS Edge: com.microsoft.edgemac

Known issues

System Settings may not work correctly

If System Settings doesn't show all sections correctly after running, this tool, restart the machine. This is likely a timing issue with Launch Services, but we haven't reproduced it consistently. If you see that a restart doesn't fix the issue, you way wish to use the ---no-rebuild-launchservices flag. This will mean that you need to reboot after running the tool.

System Settings screenshot

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL