Created
May 25, 2020 15:48
-
-
Save nivit/3a7c15c656054b936c0dd16054b9b83a to your computer and use it in GitHub Desktop.
Set up default browser in FreeBSD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* 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