I'm running XUbuntu 20.04 and have Brave, Chrome, and Firefox installed. I generally only use Brave these days unless I need to check something on one of the other two. Brave is set as my preferred browser in the Preferred Applications dialog:
Similarly, xdg-settings shows Brave as my default:
% xdg-settings get default-web-browser
brave-browser.desktop
Despite that, if I execute xdg-open some/on-disk/web/page.html
it fires up Chrome. I rummaged around in my environment variables for XDG-related values but found nothing. Running xdg-open using bash -x I saw that it eventually runs exo-open
. Running exo-preferred-applications
just brought up the above dialog, so one would hope exo-open consults whatever database that uses. Still, it appears not to in all instances. Executing exo-open --launch WebBrowser
does open Brave. Running it like this:
exo-open smontanaro/htmlcov/index.html
Chrome opens. Running it like this:
exo-open https://www.google.com/
Brave opens. I've yet to be able to construct a file: URL which brings up Brave. For example, In addition to the above relative path, this full path URL still fires up Chrome:
exo-open file:///home/skip/src/smontanaro.net/smontanaro/htmlcov/index.html
Why can't I seem to get Brave to open with an on-disk file: URL?