Dennis Olsson changed bug 1096360
What Removed Added
Status RESOLVED REOPENED
CC   DOlsson@WEB.de
Resolution FIXED ---

Comment # 5 on bug 1096360 from
Yes, it is correct that offline help has been included at the installation of
LibreOffice, but the setup to make use of this is broken.

Installing LibreOffice (in my case for English only) automagically installs the
'libreoffice-l10n-en' package, too:

$ rpm -qi libreoffice-l10n-en
Name        : libreoffice-l10n-en
...
Summary     : English Localization Files for LibreOffice
Description :
Provides additional English translations and resources for LibreOffice.
Distribution: LibreOffice:6.0 / openSUSE_Leap_42.3
$

which is a rather strange description, because this is the package that
contains the offline help texts.

But, when starting this freshly installed LibreOffice, you are not able to get
any offline help, instead you get a pop-up window:

The LibreOffice built-in help is not installed on your computer.
...

But, if you implement this work-around:

$ sudo ln -s ../../../share/libreoffice/help/en-US/
/usr/lib64/libreoffice/help/
$
$ ls -la /usr/lib64/libreoffice/help/
total 60
drwxr-xr-x  3 root root  4096 Aug  7 13:59 .
drwxr-xr-x  6 root root  4096 Jul 24 12:43 ..
lrwxrwxrwx  1 root root    38 Aug  7 13:59 en-US ->
../../../share/libreoffice/help/en-US/
-rw-r--r--  1 root root  2055 Jun 20 00:27 idxcaption.xsl
-rw-r--r--  1 root root  3624 Jun 20 00:27 idxcontent.xsl
-rw-r--r--  1 root root 37366 Jun 20 00:27 main_transform.xsl
$

and then starts LibreOffice and ask for help, you now get the offline help!

Too me, it seems that the generation of the LibreOffice RPMs have mismatching
settings of where its various files/directories are to be found (sometimes in
"/usr/lib64/libreoffice" and at other times in "/usr/share/libreoffice").

This confusion leads to the offline help not being available using the standard
RPM installation.

$ ls -la /usr/share/libreoffice/
total 40
drwxr-xr-x   5 root root  4096 Jul 20 07:35 .
drwxr-xr-x 384 root root 12288 Jul 24 14:36 ..
drwxr-xr-x   3 root root  4096 Jul 20 07:34 help
-rw-------   1 root root   588 Jul 24 12:43 icon-themes_list.txt
-rw-r--r--   1 root root  4747 Jul 24 12:43 l10n-en_list.txt
drwxr-xr-x   3 root root  4096 Jul 20 07:35 program
drwxr-xr-x   6 root root  4096 Jul 20 07:34 share
$
$ ls -la /usr/share/libreoffice/help/
total 12
drwxr-xr-x  3 root root 4096 Jul 20 07:34 .
drwxr-xr-x  5 root root 4096 Jul 20 07:35 ..
drwxr-xr-x 10 root root 4096 Jul 24 12:43 en-US


Setting a symlink (as above illustrated) in "/usr/lib64/libreoffice/help" named
"en_US" to point to "/usr/share/libreoffice/help/en-US", where the
"libreoffice-l10n-en" RPM installs the offline help, things work as expected.

I would like to suggest that the maintainer of LibreOffice has a deeper look on
where the various packages get their information about where to install what,
and makes this much more consistent, so that all parts of LibreOffice is
capable of finding its needed files.

I also suggest that the description of the "libreoffice-l10n-*" packages are
reviewed / expanded, so that it is clear that these packages (also?) contain
the offline help texts.


You are receiving this mail because: