9

I usually use /tmp when I download files that I need just this one time so that they're be deleted automatically. But snap chromium sees /tmp/snap.chromium/tmp as /tmp and for the worst of it, the user hasn't permission to open this directory. I know almost nothing of how snap works and am wondering if there is a way to grant /tmp access to some snap application?

5
  • 1
    Does this answer your question? Why can't Chromium suddenly access any partition except for /home? Commented Jun 17, 2020 at 16:58
  • @DanDascalescu I can not find any snap plug for /tmp directory to connect to chromium snap.
    – Mehraban
    Commented Jun 17, 2020 at 19:26
  • You don't need any plug, that's the idea in that answer. Any path works. Commented Jun 17, 2020 at 20:11
  • @DanDascalescu Do you mean the workaround with unsnapped instance of chromium or snap:connect one?
    – Mehraban
    Commented Jun 20, 2020 at 12:19
  • Right, I meant to link to my answer. I guess that could be called "unsnapped". Commented Jun 22, 2020 at 21:48

2 Answers 2

3

I also find this quite annoying. The solution offered here: https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1851250 is to mount a tmpfs under your home directory.

There is more information here: Why can't Chromium suddenly access any partition except for /home?, along with some other solutions such as installing a non-snap package if you're interested.

10
  • 2
    Can you described a little more the way how to solve this issue by explaining each steps? Please edit your answer
    – damadam
    Commented Nov 28, 2019 at 10:12
  • @damadam I think it would be best asked as a separate question. As a pointer, this answer helped me: unix.stackexchange.com/a/192458/179655.
    – Bernie
    Commented Dec 1, 2019 at 6:23
  • Add this link in edit instead of comment, I just say that in order to avoid your answer to be flagged as link-only answer (which aren't well-received in general)
    – damadam
    Commented Dec 2, 2019 at 8:16
  • @damadam It's not a link-only answer. I've included the solution, which is to mount a tmpfs under your home directory. If you're unsure how to do that I think it would be best asked as a separate question.
    – Bernie
    Commented Dec 3, 2019 at 6:26
  • Problem in your answer is that you just add links without explaining essentials interessant parts of these, which is not how AskUbuntu works; I just recommend you to improve your answer by extracting essential steps (that could be interesting for you, better is an answer, higher are chance to upvote it)
    – damadam
    Commented Dec 3, 2019 at 8:07
1

I've run into exactly that problem. It took me some time to understand what was going on as the path /tmp appears in the save as... window (instead of the real path /tmp/snap.chromium/tmp).

1
  • 2
    I knew this but it doesn't help me access my files any easier. /tmp/snap.chromium/tmp needs extra permission to access besides when I click on downloaded files, associated programs does not prompt to open the file (this I don't know why).
    – Mehraban
    Commented Nov 23, 2019 at 12:14

Not the answer you're looking for? Browse other questions tagged .