Bug 447507 - No thumbnails for .kra in dolphin
Summary: No thumbnails for .kra in dolphin
Status: RESOLVED FIXED
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: Thumbnails and previews (show other bugs)
Version: 21.12.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 447906 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-12-25 12:44 UTC by vanta
Modified: 2022-03-14 15:10 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vanta 2021-12-25 12:44:58 UTC
SUMMARY
After the recent upgrade of kf5, I'm unable to see krita file previews. When checking preview plugins in dolphin, by default krita thumbnails are disabled, however they are generated anyway. That also happens on new configurations and in clean user environments. When turning it on, krita thumbnails stop generating and [PreviewSettings] block in ~/.config/doplhinrc contains 'kraorathumbnail', however I managed to figure out that thumbnails are now generated with 'kritathumbnail'. Adding it to the [PreviewSettings] block in ~/.config/doplhinrc instead of 'kraorathumbnail' enables krita previews.

STEPS TO REPRODUCE
1. Enable or disable krita previews in dolphin settings.

OBSERVED RESULT
No .kra thumbnails in dolphin

EXPECTED RESULT
.kra thumbnails in dolphin

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2
Comment 1 Bug Janitor Service 2022-01-26 19:58:54 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/kio-extras/-/merge_requests/142
Comment 2 Ondřej Růžička 2022-01-31 20:24:02 UTC
I have encountered similar bug.
The workaround mentioned in the MR mentioned above:
"To try it out on a live system, simply rename /usr/share/kservices5/kraorathumbnail.desktop to /usr/share/kservices5/kritathumbnail.desktop" 
does not work for me.
Strangely enough it helps viewing .kra files in Gwenview, which was not possible at all before applying the workaround.
BUT Gwenview shows only files created cca after 10th of January this year - which more or less correlates with openSUSE Tumbleweed upgrading to kde-frameworks 5.90
 
system info
Operating System: openSUSE Tumbleweed 20220128
KDE Plasma Version: 5.23.90
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.16.2-1-default (64-bit)
Graphics Platform: Wayland
Comment 3 Ondřej Růžička 2022-01-31 21:37:02 UTC
edit 
the mentioned workaround  does indeed work. Sorry for confusion.
Comment 4 Bug Janitor Service 2022-03-04 21:04:28 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/kio-extras/-/merge_requests/144
Comment 5 Nate Graham 2022-03-06 17:48:50 UTC
Git commit b57090507680a265b89eb341c2b8c3a53a247219 by Nate Graham, on behalf of Alexander Lohnau.
Committed on 06/03/2022 at 17:47.
Pushed by ngraham into branch 'release/21.12'.

Fix id of krita thumbnailer not matching it's desktop name

Before KIO used KPluginMetaData for the thumbnailers, we would
use the DesktopEntryName for identifying the plugins.
Because the desktop files define no id, we would derive the id
from the library filename instead of the desktop name.

Consequently we should set the id to make sure the plugin can
be correctly identified.

M  +1    -0    thumbnail/kraorathumbnail.desktop

https://invent.kde.org/network/kio-extras/commit/b57090507680a265b89eb341c2b8c3a53a247219
Comment 6 Nate Graham 2022-03-14 15:10:39 UTC
*** Bug 447906 has been marked as a duplicate of this bug. ***