You are not logged in.

#1 2017-12-07 02:40:34

Xeno_Idaltu
Member
From: Open Source Technocracy
Registered: 2017-12-07
Posts: 22
Website

Cursor File previews for KDE's Dolphin File Manager?

I've download all the plug-ins and extensions possible but still can't find the ones for X11 Cursor Files.

In KDE4, Dolphin came with Cursor File previews by default.

Does anyone know how to get them back?

Below is a picture of an example.

https://wiki.manjaro.org/images/0/09/Do … gs-tab.png


"Open/Free Source the future!"

Offline

#2 2017-12-07 14:41:31

Rog131
Member
Registered: 2015-08-23
Posts: 90

Re: Cursor File previews for KDE's Dolphin File Manager?

The KDE applications can show a thumbnail for a file if there is a thumb creator plugin installed for the file type.

With the KDE4 the cursorthumbnailer was part of the kde-runtime. The old KDE4 thumbnailers need to be ported to the Qt5/KF5.

With the KDE Frameworks 5 the cursorthumbnailer is part of the kio-extras: https://cgit.kde.org/?q=kio-extras . The cursorthumbnailer build has been disabled: https://cgit.kde.org/kio-extras.git/tre … eLists.txt . From the line 152 onwards. I think that it is waiting porting. If you have interest you could file a bug report, https://bugs.kde.org, or do the porting yourself and file a review request to the Phabricator: https://phabricator.kde.org .

Meanwhiile, there is the Keneric - https://store.kde.org/p/1080815/

The Keneric KDE (KF5) thumbnailer is a generic thumbnailer. It is intended to be used when there is no dedicated KDE thumbnailer and there is a fast and simple way to get the thumbnail image...


Writing kenericursorthumbnail.desktop:

[Desktop Entry]
Type=Service
Name=Cursor Files (Keneric)
Name[x-test]=xxName=Cursor Files (Keneric)xx

X-KDE-ServiceTypes=ThumbCreator
MimeType=image/x-xcursor;

X-KDE-Library=keneric
CacheThumbnail=false

and adding to the stripPicture file:

      image/x-xcursor)
      mkdir -p /tmp/xcur2pngtmp
      xcur2png -d /tmp/xcur2pngtmp -q -c - "$fullname" > /dev/null 2>&1
      mv /tmp/xcur2pngtmp/*_000.png $exportPicture
      rm /tmp/xcur2pngtmp/*.png
      exit
      ;;

The 'xcur2png' is in Arch repositories: https://www.archlinux.org/packages/comm … /xcur2png/

Enabling the thumbnailer from the Dolphin settings....

https://imgur.com/ToKvAHz

...seems to work.



-----EDIT-------

A bug report: https://bugs.kde.org/show_bug.cgi?id=387660

Last edited by Rog131 (2017-12-07 15:54:32)

Offline

#3 2017-12-11 09:07:31

Xeno_Idaltu
Member
From: Open Source Technocracy
Registered: 2017-12-07
Posts: 22
Website

Re: Cursor File previews for KDE's Dolphin File Manager?

Thank you so much for the feedback. I learned a lot from your post.

I'm still in the process of learning advanced Linux tweaks and artwork as a hobby but as soon as I learn I will gladly contribute to the projects.

Last edited by Xeno_Idaltu (2017-12-11 09:09:49)


"Open/Free Source the future!"

Offline

Board footer

Powered by FluxBB