Page 1 of 1

Getting Thumbnailer to work in Linux Manjaro KDE

Posted: 08 Sep 2022, 12:26
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 2742 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.

Re: Getting Thumbnailer to work in Linux Manjaro KDE

Posted: 08 Sep 2022, 14:43
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

Re: Getting Thumbnailer to work in Linux Manjaro KDE

Posted: 09 Sep 2022, 15:58
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 2674 times
Screenshot_20220909_172618.png
Screenshot_20220909_172618.png (81.37 KiB) Viewed 2674 times

Re: Getting Thumbnailer to work in Linux Manjaro KDE

Posted: 12 Sep 2022, 11:44
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 2629 times
On KDE it should possible too, without changing the TVPaint desktop files. Did you install the "kde-thumbnailer" package ?

Re: Getting Thumbnailer to work in Linux Manjaro KDE

Posted: 13 Sep 2022, 14:06
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 2601 times

Re: Getting Thumbnailer to work in Linux Manjaro KDE

Posted: 13 Sep 2022, 14:15
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