Skip to content

Commit 70b01bc

Browse files
authored
Add sensible-browser to the browser list
Users on Debian-based systems who are running without a GUI might still have a text based web browser such as w3m or lynx. Debian gives us the sensible-browser command to launch one of these (either by environment variable or with the alternatives system). xdg-open still comes first, since GUI users will be less inclined to configure the sensible utils.
1 parent 7b3e8fb commit 70b01bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustup-utils/src/raw.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ pub fn find_cmd<'a>(cmds: &[&'a str]) -> Option<&'a str> {
367367
pub fn open_browser(path: &Path) -> io::Result<bool> {
368368
#[cfg(not(windows))]
369369
fn inner(path: &Path) -> io::Result<bool> {
370-
let commands = ["xdg-open", "open", "firefox", "chromium"];
370+
let commands = ["xdg-open", "open", "firefox", "chromium", "sensible-browser"];
371371
if let Some(cmd) = find_cmd(&commands) {
372372
Command::new(cmd)
373373
.arg(path)

0 commit comments

Comments
 (0)