Skip to content

Instantly share code, notes, and snippets.

@nivit
Created May 25, 2020 15:48
Show Gist options
  • Save nivit/3a7c15c656054b936c0dd16054b9b83a to your computer and use it in GitHub Desktop.
Save nivit/3a7c15c656054b936c0dd16054b9b83a to your computer and use it in GitHub Desktop.
Set up default browser in FreeBSD
* firefox
xdg-mime default firefox.desktop text/html
env BROWSER="" xdg-settings set default-web-browser firefox.desktop
env BROWSER="" xdg-settings set default-url-scheme-handler https firefox.desktop
env BROWSER="" xdg-settings set default-url-scheme-handler http firefox.desktop
* chrome (www/chromium)
xdg-mime default chromium-browser.desktop text/html
env BROWSER="" xdg-settings set default-web-browser chromium-browser.desktop
env BROWSER="" xdg-settings set default-url-scheme-handler https chromium-browser.desktop
env BROWSER="" xdg-settings set default-url-scheme-handler http chromium-browser.desktop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment