`rustup doc` ignores xdg-open environment variables
Open
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
- observe this works:
DISPLAY= BROWSER=links xdg-open https://rustlang.org - 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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