Hello, everyone, I’m trying to set BROWSER env var in environment.variables, but apps continue to open links with Chromium, though it claims that it’s not browser by default when opens them. xdg-settings get default-web-browser also outputs librewolf.desktop. Any hints?
You will have to reload your profile (log out and back in). Anyway, I don’t think applications will read this variable anymore, so the xdg-setttings are the way to go. I personally don’t have this variable set anywhere.
Then again, there are some obscure applications that will just run chrome on the shell and assume it is installed.
Actually, that mostly is firefox since xdg-open is hard-coded to use firefox as a fallback (or was in the past, seems it’s become more generic but firefox still has far higher priority by default than chrome).
xdg-open reads $BROWSER, and is ultimately what most applications use to decide default associations not dictated by mime types (and even then is often used as a substitute since the script handles them). It also has other methods that take precedence which depend on your DE/whether flatpak is installed, though, so YMMV depending on what you use.
It’s a fairly simple script, if the browser still doesn’t work for you, you can just read it to figure out what’s going wrong.