Bug 2120263 - Nautilus does not show thumbnails on mtp-connected devices
Summary: Nautilus does not show thumbnails on mtp-connected devices
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: nautilus
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Ondrej Holy
QA Contact: Vitezslav Humpa
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-22 11:35 UTC by Dr. Stephan Wonczak
Modified: 2023-06-28 12:25 UTC (History)
4 users (show)

Fixed In Version: nautilus-40.2-13.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Gitlab GNOME nautilus issues 1921 0 None closed Thumbnails doesnt load for Android MTP even on grid mode 2023-03-14 09:53:59 UTC
GNOME Gitlab GNOME nautilus merge_requests 1040 0 None merged file: Generate thumbnails when the preview icon is available 2023-03-14 09:53:57 UTC
Red Hat Issue Tracker RHELPLAN-131831 0 None None None 2022-08-22 11:39:06 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.