Gimp-Forum.net
Could not read the contents of {dir} - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Installation and usage (https://www.gimp-forum.net/Forum-Installation-and-usage)
+---- Forum: Linux and other Unixen (https://www.gimp-forum.net/Forum-Linux-and-other-Unixen)
+---- Thread: Could not read the contents of {dir} (/Thread-Could-not-read-the-contents-of-dir)



Could not read the contents of {dir} - K31thw - 08-27-2021

I have just put Ubuntu 20.04 on a new disk and installed version 2.10.24 of GIMP using the "Ubuntu Software" application.

My images are stored on a secondary internal hard drive that is automatically mounted on boot.

When trying to open a file, if I click on any folder on that mounted drive I get the following error:

[Image: Screenshot-from-2021-08-27-20-20-15.png]


I've set all of the permissions to "On" from the Ubuntu Software app and have manually set all directories in the path to rwx across the board.

What have I forgotten?

Thanks

Keith

PS - I had no issues with the same hardware and Ubuntu 18.04 (alas, I didn't make a note of the GIMP version)


RE: Could not read the contents of {dir} - Ofnuts - 08-27-2021

Is Gimp installed as a Snap or Flatpak? Such applications are sandboxed and can only access things that are actually in your home directory tree (soft links to other parts of the system tree (external drives, but also /tmp... ) don't count, but I never tried "bind mounted" directories...).


RE: Could not read the contents of {dir} - PixLab - 08-28-2021

(08-27-2021, 07:25 PM)K31thw Wrote: I have just put Ubuntu 20.04 on a new disk and installed version 2.10.24 of GIMP using the "Ubuntu Software" application.
(08-27-2021, 07:35 PM)Ofnuts Wrote: Is Gimp installed as a Snap or Flatpak? ).

It's a snap... from 20.04 buntu forces snap for GIMP

(08-27-2021, 07:25 PM)K31thw Wrote: PS - I had no issues with the same hardware and Ubuntu 18.04 (alas, I didn't make a note of the GIMP version)

Because on 18.04 GIMP still was a PPA not a snap, in the beginning of the 18.04.. Big Grin

for Ubuntu 20.04 you can have alternative if you want
appimage > https://github.com/aferrero2707/gimp-appimage/releases/tag/continuous
or
PPA from ubuntuhandbook > https://launchpad.net/~ubuntuhandbook1/+archive/ubuntu/gimp
Code:
sudo add-apt-repository ppa:ubuntuhandbook1/gimp
sudo apt update
sudo apt install gimp



RE: Could not read the contents of {dir} - rich2005 - 08-28-2021

Best avoid that Ubuntu software center and their snap packages, however

snap open media folders

from https://snapcraft.io/docs/interface-management

Code:
sudo snap connect gimp:removable-media :removable-media



RE: Could not read the contents of {dir} - K31thw - 08-28-2021

(08-28-2021, 09:05 AM)PixLab Wrote: PPA from ubuntuhandbook  > https://launchpad.net/~ubuntuhandbook1/+archive/ubuntu/gimp
Code:
sudo add-apt-repository ppa:ubuntuhandbook1/gimp
sudo apt update
sudo apt install gimp

Many thanks for the responses. I used the above option and it did the trick Smile 

Am still feeling my way around Linux and, although I love it, it can be very frustrating.

Thank goodness for the web!

Again, I appreciate the help given


RE: Could not read the contents of {dir} - PixLab - 08-29-2021

(08-28-2021, 07:36 PM)K31thw Wrote: Am still feeling my way around Linux and, although I love it, it can be very frustrating.

On that note, you might not know how appimage are working (and I forgot to mention it).
Once you've downloaded it don't click on it to launch it, but instead RIGHT click on it > Properties > tab "Permissions" and tick "Allow executing file as a program" > Click OK,
Now you can launch it normally with a left click Wink
[attachment=6610]

You can have the appimage and the PPA at the same time on your system, they just won't work at the same time, close one and you will be able to open the other one and vice versa, if you click on the appimage while the PPA is open (or vice-versa), your system will just highlight the GIMP which is already open, so no worries to have Wink