snap - how to grant permanent permission to read folder
5,802
Solution 1
This is the intentional behavior of snapd and hard-coded into source code.
This feature, opening files in snapd, is new (about seven month old). As I understand the developers are conservative and prompt is to prevent any security issues. The discussion about subject in forum.snapcraft.io and pull request that introduced new feature.
Solution 2
I got this solved in two steps:
- remove chromium-browser from snap:
snap remove chromium-browser
(snap list
to check if the browser is in the snap list) - install the browser traditionally:
sudo apt install chromium-browser
Related videos on Youtube
Author by
guderin
Updated on September 18, 2022Comments
-
guderin almost 2 years
I have installed chromium snap package. Each time I download file and try to open it or download folder I see a GNOME prompt form with question:
Allow opening file?
Allow snap "chromium" to open file "/home/username/Download"?How can I disable it permanently? Is there an option to grant read/open permission to this folder for particular snap package?
- OS: Ubuntu 18.04 LTS
- X: GNOME
- snapd version: 2.33
-
Ads20000 almost 6 yearsOutput of
snap interfaces chromium
? :) Also for the version it's best to include thetracking
,refresh-date
, andinstalled
lines ofsnap info chromium
andsnap info core
as well assnap version
. -
Kvothe almost 6 years@Ads20000, Hi I have the same problem. Since you ask for these additional details are you saying this is not default behavior? (Or do you need to know the version etc to grant the permission?) Are you saying that depending on the info you asked for you might have a solution? (In which case I will gladly supply my outputs).
-
pomsky over 5 years
-
whyer over 4 yearsneither
sudo snap connect chromium:home
norsudo snap connect chromium:removable-media
didn't help on ubuntu 19.04 -
pomsky over 4 yearsNot actually a solution as the question specifically asks how to grant a permanent read permission to the snap version of Chromium. It seems OP is knowingly using the snap application. Nevertheless it would be a workaround for users who installed the snap version without knowing the differences.
-
Kulfy over 4 yearsApart from what pomsky said, since Ubuntu is moving towards more snap, no matter if you use APT to install Chromium on newer versions such as 19.10, you'll still get a snap package.
-
chovy about 4 yearsI don't have snap chromium installed.
-
Dan Dascalescu about 4 yearsYep, used
apt
to install Chromium on Ubuntu 20, got the snap package 😠