GNOME Bugzilla – Bug 768733
[regression] Nautilus ignores remote thumbnailing setting
Last modified: 2016-07-18 10:13:08 UTC
Since 3.20.x, Nautilus now tries to thumbnail images and videos (and whatever else is thumbnailable) in SFTP folders I connect to, even though it's specifically set, in the preferences, to only thumbnail small local files... I can easily confirm this by looking at the bandwidth usage in gnome-system-monitor.
is that setting set in the preferences dialog or did you modify directly with dconf?
I set it using the app's preference dialog. It was already set before, and I unset and re-set it using the GUI just to be sure.
The culprit here is nautilus_directory_is_local(), which is effectively broken with locally mounted remote filesystems.
Created attachment 331624 [details] [review] directory: fix nautilus_directory_is_local() g_file_is_native() should be enough to decide whether the file is local. Checking if g_file_get_path() returns a native path lets us know if the directory is possibly made available by use of FUSE and there is nautilus_directory_is_local_or_fuse() for that.
As always, I am not entirely sure whether my assumptions are correct. The patch should, however, fix this exact case.
Review of attachment 331624 [details] [review]: This looks good to me, thanks Ernestas! Feel free to push to gnome-3-20 too This change was made in the past for other reasons, and now doesn't make much sense.
Attachment 331624 [details] pushed as 64de32c - directory: fix nautilus_directory_is_local()