Closed
Description
Problem
Running rustup doc
or rustup doc --book
in Fedora Silverblue opens the web browser with temporary directories that in turn opens a broken HTML page. These pages are broken in the sense that CSS appears to missing, and clicking on a link will result in a File not found
error:
file:///run/user/1000/doc/a80e7c5e/index.html
These directories only seem to contain index.html
too:
$ find /run/user/1000/doc/a80e7c5e
/run/user/1000/doc/a80e7c5e
/run/user/1000/doc/a80e7c5e/index.html
This behavior persists regardless of whether it opens in the Firefox RPM or in the Firefox flatpak.
The pages themselves are actually intact, as they can be browsed from within rustup's install location:
file:///var/home/jstone/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc/rust/html/book/index.html
Steps
- Install Fedora Silverblue
- Install rustup from the official instructions
- Run
rustup doc
orrustup doc --book
- Observe page URL in browser window
Possible Solution(s)
No response
Notes
$ distro
Name: Fedora Linux 36.20220510.0 (Silverblue)
Version: 36
Codename:
$ uname -a
Linux fedora 5.17.5-300.fc36.x86_64 #1 SMP PREEMPT Thu Apr 28 15:51:30 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Rustup version
rustup 1.24.3 (ce5817a94 2021-05-31)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.60.0 (7737e0b5c 2022-04-04)`
Installed toolchains
Default host: x86_64-unknown-linux-gnu
rustup home: /var/home/jstone/.rustup
installed toolchains
--------------------
stable-x86_64-unknown-linux-gnu (default)
nightly-x86_64-unknown-linux-gnu
installed targets for active toolchain
--------------------------------------
x86_64-unknown-linux-gnu
x86_64-unknown-linux-musl
active toolchain
----------------
stable-x86_64-unknown-linux-gnu (default)
rustc 1.60.0 (7737e0b5c 2022-04-04)