Permission denied when trying to open a file in gimp

Solution 1:

I was able to correct this error by giving the gimp snap access to the removable-media plug by entering the following command:

snap connect gimp:removable-media :removable-media

Best of Luck

Solution 2:

The Ubuntu Software program now has a way to set permissions on the page for the snap software with this issue. There is a 'Permissions' button under the name of the program.

The page for GIMP in the Ubuntu Software program, showing the Launch, Remove, and Permissions buttons

Click that, and then click the button next to where it says 'Read/write files on removable storage devices'

enter image description here

You will be prompted to enter your password. After that the problem is solved.

Ubuntu will regard internal drives other than the drive with the Ubuntu OS as removable storage devices too.

Solution 3:

Gimp wouldn't open any files for me, even when I fixed the permissions. I deinstalled the snap version, and reinstalled with

sudo apt install gimp

and the problems went away.