<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Problem installing non-basic extension as shared (see comment 5)"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=100307#c19">Comment # 19</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Problem installing non-basic extension as shared (see comment 5)"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=100307">bug 100307</a>
from <span class="vcard"><a class="email" href="mailto:moocan2112@yahoo.fr" title="moocan <moocan2112@yahoo.fr>"> <span class="fn">moocan</span></a>
</span></b>
<pre>Hello,
I don't know if it could help somebody.
I tried to installed to install the Grammalecte (<a href="https://www.dicollecte.org/">https://www.dicollecte.org/</a>)
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"
<span class="quote">> This did not work for me too !</span >
[ B ]
I tried using unopkg tool
$ sudo unopkg add --shared Grammalecte-fr-v0.6.5.oxt
As reported by <a href="mailto:rolfofsaxony@gmail.com">rolfofsaxony@gmail.com</a> 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
<span class="quote">> 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.</span >
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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>