5

I installed Rust from the rustlang.org website. I tried to look at the Book:

rustup doc --book

This results in an "Access to the file was denied" error in Firefox.

I assumed this was a snap issue, and asked in their forum. Got crickets.

So, I'm asking here. Maybe someone has figured out how to make Firefox open /home/me/.rustup/whatever.

Here is the output of snap connections | grep personal-files:

personal-files            firefox:dot-mozilla-firefox     :personal-files                  -

Here is a screenshot of Firefox telling me it cannot access the file...

Firefox error message

ikmac
  • 1,403

1 Answers1

4

This does not work because the Firefox snap is not allowed access to ~/.rustup, which is a 'hidden' directory because it starts with a dot.

As a workaround, you can do the following to move the real location of ~/.rustup somewhere else. In this case we are moving it to ~/etc/rustup.

Execute the following in a terminal.

  1. mkdir -p ~/etc
  2. mv ~/.rustup ~/etc/rustup
  3. ln -s ~/etc/rustup ~/.rustup

Now rustup doc should work transparently.

Bram Geron
  • 273
  • 3
  • 15