Bug 190029 - No OpenOffice documents preview or thumbnail in Konqueror or Dolphin in KDE 4
Summary: No OpenOffice documents preview or thumbnail in Konqueror or Dolphin in KDE 4
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 16.12.2
Platform: Mandriva RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: Peter Penz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-19 09:11 UTC by alouali
Modified: 2009-12-17 22:49 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alouali 2009-04-19 09:11:39 UTC
Version:            (using KDE 4.2.2)
OS:                Linux
Installed from:    Mandriva RPMs

Description of problem:
There are no more OpenOffice documents previews or thumbnails in Konqueror or
Dolphin in KDE 4. When we work with a lots of these documents, it's really
annoying. Something must have been broken, since this was working well in KDE
3. I use mainly Mandriva 2009 (KDE 4.1.3) and Mandriva 2009.1 RC2 Cooker (KDE 4.2.2). The problem is the same under the last version of OpenSuse and Kubuntu live CD.

It's a pity, because OpenOffice documents are just zip files, and they already
contains a file named "Thumbnails/thumbnail.png", which is just waiting to be
used for this usage !!!

Under Gnome, this think is very simple to solve : Nautilus accept simple
executables, and a simple Python script solves this (for example :
http://ubuntuforums.org/showthread.php?t=76566)

But in KDE 4, creating a thumbnailer is a nightmare for the one who didn't know
KDE 4 and C++ programming : we have to create a class that inherits
classThumbCreator
(http://api.kde.org/4.x-api/kdelibs-apidocs/kio/html/classThumbCreator.html),
and compile it as a module. I think that for someone who knows KDE 4
programming, this should not be so hard to create.

Last thing : currently OpenOffices icons are shown as blank icon with inside
the text "PK" : this is not very smart, as it is simply the 2 first bytes of
the binary files (I think it's the default
/usr/share/kde4/services/textthumbnail.desktop). Since OpenOffice documents are
zipped files, i think that PK must stands for "PKZIP". I think in a first time,
before the bug is solved, it is preferable to have the basic OpenOffice
documents icons instead of PK, which is inelegant and unuseful.

Last thing number 2 : Koffice package was said to bring preview/thumbnails in
Konqueror and Dolphin. I have tried it with no success at all. (There seems to
be a koffice thumbnailer in /usr/share/kde4/services, but it doesn't seem to do
anything). I have tried to remove the textthumbnail thumbnailer because I
suspected a priority conflict, with no more success.

Version-Release number of selected component (if applicable):
Any version of Konqueror or Dolphin in KDE 4.1.3 and KDE 4.2.2 (tested in Mandriva 2009.0 and 2009.1 Cooker, also in Kubuntu 9.04 and OpenSude KDE Four Live 1.2.1)

How reproducible:
Just open Konqueror of Dolphin a folder which contains OpenOffice documents.

Steps to Reproduce:
1. Open Konqueror of Dolphin (KDE 4 version) a folder which contains OpenOffice
documents.
2. Check "Apercu" or "Preview / Thumbnail"
3. You can see that there is no preview nor thumbnails for OpenOffice (this was
working well under KDE 3). We just have default icons or "PK" ones
Comment 1 Ariel Constenla-Haile 2009-07-24 05:30:07 UTC
Ariel ->   alouali: please check the thumbnail-plugin at http://arielch.fedorapeople.org/devel/src/OpenOfficeorgThumbnail-0.0.1.tar.gz

There is an rpm (i586) but for Fedora 11 only: http://arielch.fedorapeople.org/devel/rpm/i586/openofficeorgthumbnail-0.0.1-0.fc11.1.i586.rpm
Comment 2 alouali 2009-08-08 00:10:58 UTC
To Ariel :A very great thanks for your work.
I have tried to compile it in Mandriva 2009.1 and it works fine !
You have done a very useful work, thanks again.