Bug 2120263

Summary: Nautilus does not show thumbnails on mtp-connected devices
Product: Red Hat Enterprise Linux 9 Reporter: Dr. Stephan Wonczak <wonczak>
Component: nautilusAssignee: Ondrej Holy <oholy>
Status: VERIFIED --- QA Contact: Vitezslav Humpa <vhumpa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: CentOS StreamCC: bstinson, jwboyer, pschindl, tpelka
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nautilus-40.2-13.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dr. Stephan Wonczak 2022-08-22 11:35:47 UTC
Description of problem:
When connecting a mobile device via USB for MTP transfer, Nautilus does not show thumbnails for picture (or any other) files. Just the standard icon is displayed.
(nb: In settings, "show thumbnails" is set for "all files")

Version-Release number of selected component (if applicable):
GNOME nautilus 40.2 (nautilus-40.2-8.el9.x86_64)

How reproducible:
Always

Steps to Reproduce:
1. Connect smartphone by USB
2. Open picture folder of connected smartphone

Actual results:
Only standard icons are displayed


Expected results:
Preview thumbnails of picture files should be displayed

Additional info:
This seems to be a log-standing bug in nautilus, affecting many distributions. From my limited testing, also Nautilus 42 in FEdora 36 is affected by this bug.
MTP protocol -does- work as intended, though. For example, "gthumb" has no trouble getting thumbnails for all pictures.

Comment 1 Dr. Stephan Wonczak 2022-10-12 12:58:07 UTC
There has been an update for Nautilus since opening this bug:
nautilus-40.2-9.el9.x86_64
However, Nautilus still refuses to show thumbnails over an MTP connection.
Any feedback on this issue?

Comment 2 Dr. Stephan Wonczak 2022-11-25 12:27:51 UTC
Another month gone by, and still no reaction...
Could someone -please- have a look at this rather annoying problem. The jibes from the windows users, where it works as it should, get rather annoying.

Comment 3 Tomas Pelka 2022-11-25 13:08:30 UTC
(In reply to Dr. Stephan Wonczak from comment #2)
> Another month gone by, and still no reaction...
> Could someone -please- have a look at this rather annoying problem. The
> jibes from the windows users, where it works as it should, get rather
> annoying.

Hello sorry for the inconvenience. 
Unfortunately, the nautilus maintainer is on long-term sick leave at the moment.

Comment 4 Ondrej Holy 2022-11-29 13:52:03 UTC
It seems that the same problem has an upstream version as well. The pregenerated thumbnails from the Android device should be used, but they are not for some reason. Just for sure, can you please check whether the "preview::icon" attribute is set for your files? You can use 'gio info -a "preview::icon" [URI]' command to obtain that info...

Comment 5 Dr. Stephan Wonczak 2022-11-30 14:52:07 UTC
Yes, as I wrote before, this bug seems to affect all distributions, not just the RedHat/CentOS/Fedora shipped versions. And it seems like it is a very longstanding bug. And, also stated before, "gthumb" does display the thumbnails.

I connected my phone to USB and did the gio-command on one of the images. Here's the result (I hope it will give you some insight. hostname and phone model censored for privacy):

[sws@<host> ~]$ LANG=C gio info -a "preview::icon" /run/user/1000/gvfs/mtp\:host\=XXX/SD-Karte\ von\ SanDisk/DCIM/000MEDIA/IMAG0002.jpg
uri: mtp://HTC_HTC_U11_FA77A1802658/SD-Karte%20von%20SanDisk/DCIM/000MEDIA/IMAG0002.jpg
local path: /run/user/1000/gvfs/mtp:host=XXX/SD-Karte von SanDisk/DCIM/000MEDIA/IMAG0002.jpg
unix mount: gvfsd-fuse /run/user/1000/gvfs fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=1000
attributes:
  preview::icon: GVfsIcon:0x7fc0b000fc40

Oh, and a "Get well soon" to the maintainer of Nautilus!

Comment 6 Dr. Stephan Wonczak 2023-03-13 12:53:14 UTC
Any news here? 
Currently we are at nautilus-40.2-11.el9.x86_64 in CENTOS-9 Stream, but still no thumbnails are displayed for pictures in mtp-folders.

Comment 7 Ondrej Holy 2023-03-14 09:59:18 UTC
The upstream fix was merged and I am about to backport it to RHEL soon.

Comment 9 Vitezslav Humpa 2023-05-30 10:32:10 UTC
Fix verified with nautilus-40.2-13.el9. Thumbnails are now available via MTP as well as PTP mode.

Comment 14 Dr. Stephan Wonczak 2023-06-28 12:25:26 UTC
To give feedback: nautilus-40.2-14.el9.x86_64 became available today. I can confirm that the thumbnails are now displayed as expected.
This bug can be marked as "resolved" from my point of view.