Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Open Document thumbnails in Dolphin?

  1. #1
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,212

    Default Open Document thumbnails in Dolphin?

    Is there a way of getting thumbnails for ODF files in Dolphin?

    The TW repo has "kde-odf-thumbnail" (1.0.0-3.5) which installs...

    /usr/lib64/kde4/opendocumentthumbnail.so
    /usr/share/kde4/services/opendocumentthumbnail.desktop

    ... I was hoping that it may possibly work (I'm clearly mumbling around in the dark here) by just creating symlinks in...

    /usr/lib64/qt5/plugins/
    /usr/share/kservices5/

    ... to those files.

    Unfortunately no luck. The thumbnailer appears as an option in (Dolphin's) "Settings ... Previews", but no preview is generated.
    Regards, Paul

    Tumbleweed (Snapshot: 20190909) KDE Plasma 5
    Non-Tumbling Tumblweed (20150508) KDE 4 - Resurrected
    2x Leap 15.1 KDE Plasma 5

  2. #2

    Default Re: Open Document thumbnails in Dolphin?

    Quote Originally Posted by tannington View Post
    The TW repo has "kde-odf-thumbnail" (1.0.0-3.5) which installs...
    That's a KDE4 version and only works with dolphin4 or Konqueror (which is still KDE4 based).

    Unfortunately no luck. The thumbnailer appears as an option in (Dolphin's) "Settings ... Previews", but no preview is generated.
    Yeah, it likely crashes because it is loaded by KF5 (and uses Qt4).

    It should not be hard to port kde-odf-thumbnail to KF5, but so far nobody did it AFAIK.

    An option would be to install calligra5 (which also includes a thumbnailer for odt files) from KDE:Unstable:Extra, but that would replace the stable calligra, so probably not a good idea if you rely on calligra.
    And I'm not completely sure that it works at all with the stable KDE Frameworks 5.19.0 (but I think it should).

  3. #3
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,212

    Default Re: Open Document thumbnails in Dolphin?

    Quote Originally Posted by wolfi323 View Post
    That's a KDE4 version ...
    Yes, I knew that but thought (again) I'd give it a try. I wasn't surprised that it didn't work...

    An option would be to install calligra5 ...
    Bother...

    I don't really want to install calligra just to get a thumbnailer, and I'd like to keep this TW install as only the base TW repos.

    I'll just have to wait until someone gets around to porting it I guess.

    Thanks.
    Regards, Paul

    Tumbleweed (Snapshot: 20190909) KDE Plasma 5
    Non-Tumbling Tumblweed (20150508) KDE 4 - Resurrected
    2x Leap 15.1 KDE Plasma 5

  4. #4

    Default Re: Open Document thumbnails in Dolphin?

    Quote Originally Posted by tannington View Post
    I'll just have to wait until someone gets around to porting it I guess.
    As I said it shouldn't be hard. The main thing that has to be changed are the cmake files to actually build against KF5/Qt5, not KDE4/Qt4.
    I might give it a try this weekend.

    Actually I already looked at it shortly a few weeks ago and wanted to do it, but then forgot about it.

    The only thing the thumbnailer does is extract the odt "archive" (an odt file is just a ZIP archive) and return the included thumbnail image (Thumbnails/thumbnail.png).
    Last edited by wolfi323; 04-Mar-2016 at 06:24.

  5. #5
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,212

    Default Re: Open Document thumbnails in Dolphin?

    Quote Originally Posted by wolfi323 View Post
    I might give it a try this weekend.
    My man!

    I'm sure quite a few people apart from I would appreciate that.
    Regards, Paul

    Tumbleweed (Snapshot: 20190909) KDE Plasma 5
    Non-Tumbling Tumblweed (20150508) KDE 4 - Resurrected
    2x Leap 15.1 KDE Plasma 5

  6. #6

    Default Re: Open Document thumbnails in Dolphin?

    You can find the KF5 port of kde-odf-thumbnail here now:
    http://software.opensuse.org/downloa...-odf-thumbnail

    I will submit it to KDE:Extra in the next days, from where it will get to Tumbleweed too.

    Btw, in case you're interested, this is the full patch:
    https://build.opensuse.org/package/v...patch?expand=1

  7. #7
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,212

    Default Re: Open Document thumbnails in Dolphin?

    Quote Originally Posted by wolfi323 View Post
    You can find the KF5 port of kde-odf-thumbnail here now:
    http://software.opensuse.org/downloa...-odf-thumbnail

    I will submit it to KDE:Extra in the next days, from where it will get to Tumbleweed too.
    Downloaded the RPM and installed...

    Thumbnails now present and correct for *.odt, *.odg, and *.ods... super job. Greatly appreciated, many thanks.

    Btw, in case you're interested, this is the full patch:
    https://build.opensuse.org/package/v...patch?expand=1
    This old dog could be too old to start learning new tricks... or resurrecting old ones. The last time I did any serious coding was mid 80's using assembler on an 8080, dabbled with c a little, and more recently, python (but only because I had to)...
    Regards, Paul

    Tumbleweed (Snapshot: 20190909) KDE Plasma 5
    Non-Tumbling Tumblweed (20150508) KDE 4 - Resurrected
    2x Leap 15.1 KDE Plasma 5

  8. #8

    Default Re: Open Document thumbnails in Dolphin?

    Quote Originally Posted by tannington View Post
    Downloaded the RPM and installed...

    Thumbnails now present and correct for *.odt, *.odg, and *.ods... super job. Greatly appreciated, many thanks.
    You're welcome, and thanks for the confirmation that it works.
    It did here, but it's always good to get it confirmed...

    I have submitted it to KDE:Extra from where it will reach Tumbleweed, and I'll submit an update for Leap as well.

    This old dog could be too old to start learning new tricks... or resurrecting old ones. The last time I did any serious coding was mid 80's using assembler on an 8080, dabbled with c a little, and more recently, python (but only because I had to)...
    Well, there's not really much "coding magic" in a patch.
    In short, it shows you what lines got changed. Lines starting with '-' got removed (marked as red in the OBS web interface or "good" text editors), lines starting with '+' got added (marked as green).

    I just wanted to show off that there were no real changes necessary in the code (as I already wrote), only the cmake files (CMakeLists.txt) which are "recipes" for how to build it.
    Last edited by wolfi323; 07-Mar-2016 at 07:10.

  9. #9
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,212

    Default Re: Open Document thumbnails in Dolphin?

    Quote Originally Posted by wolfi323 View Post
    Well, there's not really much "coding magic" in a patch.
    True perhaps in this case... but it's the knowing what needs to be changed

    Truth be told, I just don't have the enthusiasm to code any more.
    Regards, Paul

    Tumbleweed (Snapshot: 20190909) KDE Plasma 5
    Non-Tumbling Tumblweed (20150508) KDE 4 - Resurrected
    2x Leap 15.1 KDE Plasma 5

  10. #10

    Default Re: Open Document thumbnails in Dolphin?

    Quote Originally Posted by tannington View Post
    True perhaps in this case... but it's the knowing what needs to be changed
    Of course.

    Truth be told, I just don't have the enthusiasm to code any more.
    Well, nobody forces you to do.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •