Getting Thumbnailer to work in Linux Manjaro KDE

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
User avatar
deruji
Posts: 49
Joined: 28 Jul 2018, 22:53
Location: Germany
Contact:

Getting Thumbnailer to work in Linux Manjaro KDE

Post by deruji »

Hi, I'm trying to get TVPaint's thumbnailer to work in Linux Manjaro KDE so that thumbnails display in Dolphin.
If someone more knowledgeable could help if something's missing or say if it's impossible to implement, that would be great.
I tried looking at similar configuration files and adjusted paths where needed. Although I can get the entry to display as an option, no thumbnails are being generated or displayed in Dolphin.
Screenshot_20220908_141946.png

I modified .thumbnailer file to be in line with others of the same type
"tvp-animation-11.5-pro.thumbnailer"

Code: Select all

[Thumbnailer Entry]
TryExec=/usr/bin/tvp-animation-11.5-pro-thumbnailer
Exec=/usr/bin/tvp-animation-11.5-pro-thumbnailer %s %i %o
MimeType=application/tvp-project;application/tvpaint-project;application/mirage-project;application/aura-project;application/dip-file;application/deep-file;
I created a .desktop file that goes in /kservices5
"tvpaintthumbnail.desktop"

Code: Select all

[Desktop Entry]
Type=Service
Name=TVPaint files
X-KDE-ServiceTypes=ThumbCreator
MimeType=application/tvp-project;application/tvpaint-project;application/mirage-project;application/aura-project;application/dip-file;application/deep-file;
X-KDE-Library=tvpaintthumbnail
CacheThumbnail=true
The .desktop file is recognized by Dolphin and I can select it for previews.
Screenshot_20220908_141114.png
Screenshot_20220908_141114.png (57.35 KiB) Viewed 2740 times
It writes "tvpaintthumbnail" into the [PreviewSettings] section of Dolphin's config file "dolphinrc", but that's the only effect I've managed to get so far.
The traditional 2D animator working with local and international artists.
You can help support my work to make traditional animation, here.
Xavier
Posts: 1855
Joined: 01 Oct 2019, 11:08

Re: Getting Thumbnailer to work in Linux Manjaro KDE

Post by Xavier »

First guess : I'd think that you need first to create a MIME type for the *.tvpp extension :
800px-Settings-file-associations.png
https://userbase.kde.org/System_Setting ... iations/en
User avatar
deruji
Posts: 49
Joined: 28 Jul 2018, 22:53
Location: Germany
Contact:

Re: Getting Thumbnailer to work in Linux Manjaro KDE

Post by deruji »

Thank you for the suggestion. The MIME types are already made as far as I can tell and filled with a wide variety of associations.
Would any specific MIME types need to be included in the .thumbnailer and .desktop files?
I don't know what internal file types are used to store the frames, if that is what the thumbnailer is looking for.
Screenshot_20220909_172550.png
Screenshot_20220909_172550.png (66.92 KiB) Viewed 2672 times
Screenshot_20220909_172618.png
Screenshot_20220909_172618.png (81.37 KiB) Viewed 2672 times
The traditional 2D animator working with local and international artists.
You can help support my work to make traditional animation, here.
Xavier
Posts: 1855
Joined: 01 Oct 2019, 11:08

Re: Getting Thumbnailer to work in Linux Manjaro KDE

Post by Xavier »

Ok, sorry it took me a little time to get into it: though I've been on Linux for ages, I'm not well aware of how thumbnails work !

There is an interesting discussion there : https://forum.kde.org/viewtopic.php?t=49010
So I think that if you have different versions installed you'd need first to query which version of TVPaint actually generates the preview of the *.tvp files. Try this in a command line:

Code: Select all

xdg-mime query default application/tvp-project
As for me, I use XFCE and the thumbnails do show in Thunar (the XFCE file explorer).
Capture d’écran_2022-09-12_13-29-25.png
Capture d’écran_2022-09-12_13-29-25.png (73.26 KiB) Viewed 2627 times
On KDE it should possible too, without changing the TVPaint desktop files. Did you install the "kde-thumbnailer" package ?
User avatar
deruji
Posts: 49
Joined: 28 Jul 2018, 22:53
Location: Germany
Contact:

Re: Getting Thumbnailer to work in Linux Manjaro KDE

Post by deruji »

Hi, using the command:

Code: Select all

xdg-mime query default application/tvp-project
gives me:

Code: Select all

tvp-animation-11.5-pro.desktop
I assume that should be the correct value.

The KDE-thumbnail packages are all installed, Dolphin generates thumbnails for all other image formats.

I tried installing a different file manager "PCmanFM" to see if the problem was also there. It directly accesses thumbnailers set in "/usr/share/thumbnailers".
It was able to generate thumbnails, so I can at least confirm that the thumbnailer itself is working in Manjaro. The problem seems to be in how Dolphin is accessing/not accessing TVPaint's thumbnailer.
Screenshot_20220913_155743.png
Screenshot_20220913_155743.png (94.96 KiB) Viewed 2599 times
The traditional 2D animator working with local and international artists.
You can help support my work to make traditional animation, here.
User avatar
deruji
Posts: 49
Joined: 28 Jul 2018, 22:53
Location: Germany
Contact:

Re: Getting Thumbnailer to work in Linux Manjaro KDE

Post by deruji »

I also found someone with a similar problem. It looks like Dolphin or KDE require a specific plugin.
https://forum.freecadweb.org/viewtopic. ... 5&p=589564
The traditional 2D animator working with local and international artists.
You can help support my work to make traditional animation, here.
Post Reply