Bug 444638 - Selectively disable folder previews/thumbs
Summary: Selectively disable folder previews/thumbs
Status: REPORTED
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: Thumbnails and previews (show other bugs)
Version: unspecified
Platform: Manjaro Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-30 01:25 UTC by Khiu
Modified: 2022-10-02 16:26 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Khiu 2021-10-30 01:25:27 UTC
SUMMARY
After some time using Dolphin as my File Explorer, I've come to really want to hide the folder thumbs/previews of *some* of them, due to they containing sensitive data, or just because I want to add a custom icon to it but without the previews on top of it, and without having to disable folder previews completely.
(In case it's not clear I'll clarify: I'm only talking about the previews generated for the folder icon, not the thumbnails of the files inside folders.)


My first thought on this was how Android has the .nomedia files inside folders to tell programs not to look into them. And well, KDE has something similar for custom folder icons and per-directory view settings: the .directory file.
From what I've seen this file uses the same format as the .desktop files, but without the standard/freedesktop specification. So the next part shouldn't be much of a problem of going against a standard.
My proposal is adding a flag in the .directory file of a directory, which the thumbnailer can easily read and skip the thumb generation for it. Implementing a menu to change the flag would be another thing and probably would go in the Dolphin product, and also take more work, but at least the option to manually edit the file and add the entry/flag would be better than none at all.

I've looked at the code and it doesn't seem too hard to implement. I'm don't really code in C, but I could still give it a shot in my free time and make an MR on Invent, and then reviewing wouldn't be as much job for the maintainers, maybe. I also imagine there are higher priority tasks, even more since I am suggesting skipping the UI setting for now.
I do have seen at least one post online asking for this.

So yeah... opinions?

SOFTWARE/OS VERSIONS
Linux Distro: Manjaro (Kernel: 5.4)
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2

(Sorry if I strayed away from the standard bug/feature req report. I'm really new here (2nd post) and I'm not really sure how to format feature requests like this one)