granted icon indicating copy to clipboard operation
granted copied to clipboard

Support Safari as a default browser

Open chrnorm opened this issue 2 years ago • 1 comments

When using assume with a fresh MacOS install I receive the following:

chrisnorman@MacBook-Pro ~ % assume

ℹ️  Could not find default browser

? Select one of the browsers from the list  [Use arrows to move, type to filter]
> Chrome
  Brave
  Edge
  Firefox
  Chromium
  Stdout
  FirefoxStdout

Safari isn't included in this list - we should be able to detect it as a default browser or at least have it selectable in the list of browsers.

chrnorm avatar Sep 12 '22 09:09 chrnorm

Even though I couldn't select Safari from the list, the settings that Granted created for me (TOML config below from ~/.granted/config) do actually open Safari for logging in to AWS SSO.

DefaultBrowser = "FIREFOX"
CustomBrowserPath = "/Applications/Firefox.app/Contents/MacOS/firefox"
CustomSSOBrowserPath = ""
LastCheckForUpdates = 1
Ordering = ""
ExportCredentialSuffix = ""

[Keyring]
  Backend = "keychain"

chrnorm avatar Sep 12 '22 09:09 chrnorm