Setting the default browser on the Linux container on ChromeOS
I've been using my Frame.Work Chromebook as my primary personal laptop for a while now, and I've enjoyed it quite a bit. One of the best parts of ChromeOS is being able to install the Linux Development environment and run Linux apps on it. However, it typically opens up a browser installed on the Linux environment, which isn't ideal. After digging, I finally found a link on the Google support page that helped solve that problem for me. Here's the summary:
Update the mimeinfo.cache file at: /usr/share/applications with the following values
text/html=garcon_host_browser.desktop x-scheme-handler/http=garcon_host_browser.desktop x-scheme-handler/https=garcon_host_browser.desktop
Update the ~/.local/share/applications/mimeapps.list
text/html=garcon_host_browser.desktop
Enter the following in the terminal
unset BROWSER
xdg-settings set default-web-browser garcon_host_browser.desktop
sudo xdg-settings set default-web-browser garcon_host_browser.desktop
Set the garcon-url-handler by running the following command
sudo xdg-settings set default-web-browser garcon_host_browser.desktop