Closed sudoforge closed 2 years ago
Version 0.4 on Linux exclusively uses the xdg-open
script bundled with the library to open links. If it's opening an unexpected program, the problem lies in that script. The script comes straight from xdg-utils, and I don't intend on making modifications to that script, except updating it with upstream changes.
I can only recommend using v0.5, which explicitly supports the BROWSER
environment variable, and also uses the system xdg-open
if available.
To any future readers, this was due to the xdg-mime
configuration for text/html
being set to chromium.desktop
. To resolve this:
xdg-mime default <your preferred application> text/html
rustup-doc
version1.24.3
(the current latest available version as of the filing of this issue) usesopener = "0.4.0"
, and neither theBROWSER
environment variable nor the XDGdefault-browser
property appear to be used to open the browser. Following the discussion in https://github.com/rust-lang/rustup/issues/2642, it appears that support for theBROWSER
environment variable isn't available with that version ofopener
. Looking at the0.4.1
tag in this repository (and based on the discussion in the aforementioned issue), it appears thatxdg-open
should be used to open the URL. This doesn't seem to be the case.