Thumbnails for .xcf files only show in Gimp ( snap ) and nowhere else.

Bug #1883457 reported by Coeur Noir
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gimp (Ubuntu)
Confirmed
Low
Unassigned
gnome-xcf-thumbnailer (Ubuntu)
Confirmed
Undecided
Unassigned
gthumb (Ubuntu)
Invalid
Undecided
Unassigned
nautilus (Ubuntu)
Invalid
Undecided
Unassigned
nemo (Ubuntu)
Invalid
Undecided
Unassigned
snapd (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi,

On Ubuntu ( Budgie ) 20.04 when using Gimp as a snap, you’ll see thumbnails for .xcf files only « inside » Gimp and nowhere else ( Nemo, Nautilus, gThumb… )

I did a messy workaround for .xcf thumbnails to appear anywhere expected : I put all of my user’s thumbnails into ~/snap/gimp/common/.cache/thumbnails/ and now ~/.cache/thumbnails/ is a symlink targeting the first.

You’d agree it’s absolutely a bad idea to store all of an user’s thumbnails into a particular subfolder of a particular snap.

How tell my session to look for thumbnails not only in ~/.cache/thumbnails/ but also in any thumbnails folder inside ~/snap/ ?

For references :
https://askubuntu.com/questions/1250031/gimp-snap-and-thumbnails-for-xcf-files
https://discourse.ubuntubudgie.org/t/gimp-as-a-snap-no-thumbnails-for-xcf-files-in-nemo-gthumb/3799
https://forum.snapcraft.io/t/gimp-and-thumbnails-for-xcf-files/18131/3?u=coeur-noir
https://forum.ubuntu-fr.org/viewtopic.php?id=2053949

Tags: focal
Coeur Noir (coeur-noir)
summary: - Thumbnails for .xcf files only shows in Gimp ( snap ) and nowhere else.
+ Thumbnails for .xcf files only show in Gimp ( snap ) and nowhere else.
description: updated
Coeur Noir (coeur-noir)
no longer affects: thumbnailer (Ubuntu)
tags: added: focal
Revision history for this message
Coeur Noir (coeur-noir) wrote :

Okay… differently worded :

is it normal thumbnails generated by a snap-app ( and therefore stored somewhere under ~/snap/… )
can't be then used by file explorer or pictures viewer ?

It's a regression between same app-as-deb and app-as-snap.

Just because Ubuntu looks for thumbnails only in ~/.cache/thumbnails or ~/.thumbnails
It should also watch inside any folder named thumbnails inside ~/snap

https://askubuntu.com/questions/1253862/how-tell-my-ubuntu-to-look-for-thumbnails-not-only-in-cache-thumbnails/1254111

Dylan Aïssi (daissi)
affects: snap (Ubuntu) → snapd (Ubuntu)
Revision history for this message
Coeur Noir (coeur-noir) wrote :

I have finally ended up with binding both « thumbnails » folders through fstab adding those lines :

# .xcf thumbnails from gimp snap for anyone
/home/user_1/.cache/thumbnails/ /home/user_1/snap/gimp/common/.cache/thumbnails/ none bind 0 0
/home/user_2/.cache/thumbnails/ /home/user_2/snap/gimp/common/.cache/thumbnails/ none bind 0 0
/home/user_3/.cache/thumbnails/ /home/user_3/snap/gimp/common/.cache/thumbnails/ none bind 0 0

This way, Gimp-snap actually writes its thumbnails there and then Nemo and Nautilus accordingly displays thumbnails for .xcf files.

gThumb though still shows empty frames for .xcf files - but my main concern was the file explorer.

Thanks to https://forum.ubuntu-fr.org/viewtopic.php?pid=22362050#p22362050

Revision history for this message
Sebastien Bacher (seb128) wrote :

It's not a problem to be resolved in the different applications that are loading thumbnails, snapd should resolve that usecase by making those write to a location used by the system

Changed in gimp (Ubuntu):
importance: Undecided → Low
Changed in nautilus (Ubuntu):
status: New → Invalid
Changed in gthumb (Ubuntu):
status: New → Invalid
Changed in nemo (Ubuntu):
status: New → Invalid
Revision history for this message
Coeur Noir (coeur-noir) wrote :

It's not a problem to be resolved in the different applications that are loading thumbnails, snapd should resolve that usecase by making those write to a location used by the system

I totally agree with you.

Any progress made since ?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gimp (Ubuntu):
status: New → Confirmed
Changed in gnome-xcf-thumbnailer (Ubuntu):
status: New → Confirmed
Changed in snapd (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.