| Summary: | Remote RAW image previews don't work because of missing file extension in thumbnail temp file | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | Andrew Gunnerson <accounts+kde> |
| Component: | general | Assignee: | KIO Bugs <kio-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | kdelibs-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | 5.101.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/frameworks/kio/-/commit/5e0b6cbf1b9ef5c1e181caa2726a5591ff0d5fde | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Andrew Gunnerson
2023-01-08 04:07:25 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/1103 In case approach #2 is acceptable, I've created an MR to implement that here: https://invent.kde.org/frameworks/kio/-/merge_requests/1103 Git commit 5e0b6cbf1b9ef5c1e181caa2726a5591ff0d5fde by Méven Car, on behalf of Andrew Gunnerson. Committed on 30/04/2024 at 10:14. Pushed by meven into branch 'master'. PreviewJob: Add file extension to thumbnail temp files Previously, when previewing remote files, kio would create a local copy of the file using QTemporaryFile's default template. This would result in filenames, like /tmp/dolphin.XXXXXX. However, some thumbnail plugins, like kdegraphics-thumbnailers' libkdcraw thumbnailer, require the file extension to be valid in order to produce a preview. This commit updates the temp file's naming template to include the original file extension (if any). Signed-off-by: Andrew Gunnerson <accounts+kde@chiller3.com> M +8 -0 src/gui/previewjob.cpp https://invent.kde.org/frameworks/kio/-/commit/5e0b6cbf1b9ef5c1e181caa2726a5591ff0d5fde |