[Libreoffice-bugs] [Bug 100307] Problem installing non-basic extension as shared (see comment 5)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Jul 6 20:49:53 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=100307

--- Comment #19 from moocan <moocan2112 at yahoo.fr> ---
Hello,

I don't know if it could help somebody.

I tried to installed to install the Grammalecte (https://www.dicollecte.org/)
extension as a shared one.

[ A ]

I tried using Justin L suggestion :
  $ LO_EXTENSION_DIR=/usr/lib/libreoffice/share/extensions
  $ sudo unzip -q -d "${LO_EXTENSION_DIR}/${LO_EXTENSION}" 
"${LO_EXTENSION}.oxt"

> This did not work for me too !

[ B ]

I tried using unopkg tool
$ sudo unopkg add --shared Grammalecte-fr-v0.6.5.oxt
As reported by rolfofsaxony at gmail.com extension is installed in
/var/spool/libreoffice/uno_packages/cache/uno_packages/*tmpXXXX/Grammalecte-fr-v0.6.5.oxt
.
Only root can use it. No standard users can use the extension and the extension
is even not loaded  ... no additional menu in my case.
So I moved all created files by unopkg from
/libreoffice/uno_packages/cache/uno_packages/*tmpXXXX/* to
/usr/lib/libreoffice/share/extensions

> This worked well. Extension is listed, and all users can use it. Extension can't be removed by standard users and seen as bundled with LibreOffice.

I tried to understand what are the differences between method [A] and [B]
I compared the crc and content of all files
- All files contained in oxt zip file remains exactly the same using unzip or
unopkg
- unopkg tool has created a new properties file named
Grammalecte-fr-v0.6.5.oxtproperties which contains properties related to the
extension as SUPPRESS_LICENSE=0
I tried to delete this file but the extension is still loaded.
- unopkg created many __pycache__ folders which are cantaining files.
I tried to delete these __pycache__ folders and then the extension is no more
loaded.

I tried same method with another extension and I got the same results.
So I don't know why unopkg is doing it works in
/var/spool/libreoffice/uno_packages/...

I don't know if it will work for all extension.
I hope this can help somebody.

Kind Regards

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180706/bb840130/attachment.html>


More information about the Libreoffice-bugs mailing list