FS#51887 - [libreoffice-fresh] gnome-documents can't load libreoffice files

Attached to Project: Arch Linux
Opened by Denis Rolland (drolland) - Saturday, 19 November 2016, 16:44 GMT
Last edited by Andreas Radke (AndyRTR) - Wednesday, 08 February 2017, 17:15 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Andreas Radke (AndyRTR)
Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

gnome-documents in gnome 3.22 can't open libfreoffice files.
After some debugging, it appears that gnome-documents expect to have liblibreofficegtk.so located in /usr/lib.
Creating a symbolic link from /usr/lib/libreofficekitgtk.so to /usr/liblibreofficegtk.so doesn't work either ( gnome-documents complains about having too much symbolic link levels ), bug a hard-link does the trick.
There is the same problem with libreoffice-still


Additional info:
* package version(s)
* config and/or log files etc.


Steps to reproduce:
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Wednesday, 08 February 2017, 17:15 GMT
Reason for closing:  Fixed
Comment by Denis Rolland (drolland) - Saturday, 19 November 2016, 16:56 GMT
ADDENDUM : the trick only works with the latest gnome-document retrieved from the gnome git repository.
I'll further investigate.
Comment by Denis Rolland (drolland) - Saturday, 19 November 2016, 17:12 GMT
mea culpa, i rechecked, a symbolic link from /usr/lib/libreofficekitgtk.so to /usr/liblibreofficekitgtk.so does the trick for the gnome-documents from arch repository
Comment by Jan Alexander Steffens (heftig) - Sunday, 27 November 2016, 18:45 GMT
I think this is an issue with libreoffice-fresh. gnome-documents is just a consumer of libreoffice's LOKDocView.

This fails similarly: python -c 'from gi.repository import LOKDocView; LOKDocView.View()'

** (-c:17284): WARNING **: Failed to load shared library 'liblibreofficekitgtk.so' referenced by the typelib: liblibreofficekitgtk.so: cannot open shared object file: No such file or directory
Comment by Doug Newgard (Scimmia) - Sunday, 27 November 2016, 18:53 GMT
So you think this should be in the linker's search path? LO doesn't seem to think so, but maybe it's something they leave up to packaging?
Comment by Andreas Radke (AndyRTR) - Sunday, 05 February 2017, 10:03 GMT
We could for sure add /etc/ld.so.conf.d/libreoffice.conf with /usr/lib/libreoffice/program path added to the linker. But I wonder why no other distro runs into this. Neither Fedora or Debian does this. Maybe Gnome-documents changed something lately?
Comment by Jan de Groot (JGC) - Sunday, 05 February 2017, 12:03 GMT
Looking at the debian package:
https://packages.debian.org/sid/amd64/liblibreofficekitgtk/filelist

Their libreofficekitgtk.so is in /usr/lib (probably a symlink).
Comment by Andreas Radke (AndyRTR) - Sunday, 05 February 2017, 15:55 GMT

Loading...