Bug 425750 - Disable preview in specific folders (e.g. Kde-Connect)
Summary: Disable preview in specific folders (e.g. Kde-Connect)
Status: RESOLVED WORKSFORME
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 20.08.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-24 18:36 UTC by Podagric
Modified: 2023-10-24 11:12 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
video (415.52 KB, video/mp4)
2020-08-24 18:36 UTC, Podagric
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Podagric 2020-08-24 18:36:08 UTC
Created attachment 131154 [details]
video

SUMMARY

The folder mounted by kde-connect is not considered a remote folder by dolphin (since it is mounted through sshfs), so thumbnail generation is done even if the option to ignore remote files is active.

STEPS TO REPRODUCE
1. In kde connect settings in android, add a folder with many videos or images to the sharing list (or add files to the currently shared folder).
2. Access this folder through dolphin

OBSERVED RESULT
This makes dolphin extremely slow when a folder with many files is accessed. Like a folder with many photos and videos.

EXPECTED RESULT
An option in the configuration menu to disable previewing in specific folders. Or this could be identified and done automatically. 
The first option seems to be the ideal one because it would avoid future problems in case of changes in kde-connect.


Operating System: Arch Linux
KDE Plasma Version: 5.19.4
KDE Frameworks Version: 5.73.0
Qt Version: 5.15.0
Kernel Version: 5.8.3-arch1-1
OS Type: 64-bit
Comment 1 Nate Graham 2020-08-24 18:42:15 UTC
In fact you already can! :)

1. Dolphin settings > General > Remember display style for each folder
2. Go to the folder you want to turn off previews for
3. Hamburger menu or View menu > uncheck > "Show Previews"
Comment 2 Podagric 2020-08-24 20:59:58 UTC
Thanks, Nate. It really works.

But it bothers me to have this option activated. I like that the changes made in Dolphin, like the order and type of display, hidden folders, thumbnail size are applied globally. Individual settings may be nice at first, but after many specific settings are accumulated for each folder, it becomes difficult to manage.

I still think my initial suggestion is a better way to handle this, I don't think marking it as "resolved" is correct.

btw, even with preview disabled, the problem of slowness continues. I think the problem is much "deeper" than that.

Maybe it's some problem related to sshfs, because I use remote sftp folders and they work very well.

i tried to inform myself with the developers of kde connect but they don't seem to be worried about it. It's been a while since its development has been declining and so has the quality.
Comment 3 Nate Graham 2020-08-24 22:13:29 UTC
Yeah, I understand that this manual action is kind of a workaround, not really a perfect solution.

Handling this case automatically would require one or more of the following:
1. Automatically disable previews for sshfs mounts (not ideal since some can be fast enough
2. Automatically disable previews for slow filesystems (requires detecting slowness; potentially technically challenging
3. Speed up kde-connect's sshfs mount (probably ideal, but probably technically challenging or else it would have already been done)
Comment 4 Konstantin Kharlamov 2023-10-24 10:58:39 UTC
> 1. Automatically disable previews for sshfs mounts (not ideal since some can be fast enough

It would seem the expected behavior (disregarding if the connection is fast or not), because the problem is that the option "Skip previews for remote files" being set implies, well, no previews for remote files and an sshfs connection is "remote".

P.S.: Is there a reason this report is closed as a WFM? From the discussion it seems all participants acknowledge existence of the problem
Comment 5 Konstantin Kharlamov 2023-10-24 11:12:06 UTC
> 1. Dolphin settings > General > Remember display style for each folder

I should mention I'm not certain this workaround works that well, because

1. As part of path to the dir mounted by `kde-connect` I see some ID, which I am not sure specific to what (device, the connection, the PC, or is it even randomly generated?), so I presume setting local style may break if it changes
2. There may be more than one folder and having to set style for each is inconvenient.