https://bugs.kde.org/show_bug.cgi?id=410561
Bug ID: 410561 Summary: When Text Files preview is enabled, .directory & .flatpakref files should still show their icon instead of their text contents (i.e. behave like .desktop files) Product: dolphin Version: 19.04.3 Platform: Other OS: Linux Status: REPORTED Severity: minor Priority: NOR Component: general Assignee: dolphin-bugs-n...@kde.org Reporter: apmihalopou...@gmail.com CC: elvis.angelac...@kde.org Target Milestone: --- Just like '.desktop' files (henceforth: Desktop) '.directory' (Directory) and '.flatpakref' (Flatpak) files are also special text files and should be treated as such, which means they should not generate a content thumbnail when Text Files preview is enabled in Dolphin, like they do currently, but instead should keep showing their designated icon. This issue was affecting Desktop files as well up until very recently (November 2018), but was "mysteriously" fixed in (I presume) KDE Frameworks 5.52, as can be seen in the closing comments of https://bugs.kde.org/show_bug.cgi?id=220330 Unfortunately, as far a I can tell, the solution to this problem was not reached through manipulating e.g. the file type but by simply hard-coding the '.desktop' file extension as special. My "evidence" for that: - Directory files are the exact same file type as Desktop files (desktop configuration file) yet they do generate text thumbnails. - If a Desktop file's '.desktop' extension is changed to something else (e.g. '.deskto'), then the Desktop file behaves as a normal text file and erroneously generates a content preview. - And of course, if a Directory file's extension is changed from '.directory' to '.desktop', it properly shows its icon just as if it were a Desktop file (this won't work for Flatpak files though, since they're a separate mime type). STEPS TO REPRODUCE 1. Go to Dolphin -> Configure Dolphin -> General -> Previews and disable "Text Files". 2. Directory & Flatpak files display their icon as they should (see 1st screenshot) 3. Go to Dolphin -> Configure Dolphin -> General -> Previews and enable "Text Files". 4. Directory & Flatpak files display their text contents instead of their icons (see 2nd screenshot) 5. Desktop files are unaffected by the whole process unless their file extension is changed, as already mentioned. EXPECTED RESULT Directory files (found in e.g. ~/.local/share/desktop-directories) and Flatpak files should both be treated as special text files, just like Desktop files are, and always show their icons instead of their text contents. Additionally, all three of these files could/should be completely decoupled from the Text Files preview option and instead be included in separate preview entries: Desktop & Directory files in e.g. "Desktop Launchers", and Flatpak files in "Flatpak" (exactly like Appimage files). ADDITIONAL INFO: - The issue with Flatpak files has previously been reported in https://bugs.kde.org/show_bug.cgi?id=400201, but the bug report has gone stale. -- You are receiving this mail because: You are watching all bug changes.