rust-lang / rust-lang/rustup

`rustup doc` ignores xdg-open environment variables

Open
#2,980 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rust
Stars
7k
Forks
1.1k
Avg merge
22h 40m
Merged PRs (30d)
46

Description

Problem

I'm trying to read documentation on a headless system, and it is not opening.

Steps
  1. observe this works: DISPLAY= BROWSER=links xdg-open https://rustlang.org
  2. observe this fails: DISPLAY= BROWSER=links rustup doc
Possible Solution(s)

No response

Notes

No response

Rustup version
1.24.3
Installed toolchains
aarch64-linux-android
x86_64-unknown-linux-gnu

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the documented DISPLAY= BROWSER=links rustup doc failure and inspect the rustup doc entry point responsible for opening documentation. Compare its behavior with xdg-open under the same environment, then verify that the relevant environment variables are honored on a headless system.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.