CollaboraOnline / online

Collabora Online is a collaborative online office suite based on LibreOffice technology. This is also the source for the Collabora Office apps for iOS and Android.
https://collaboraonline.com
Other
1.85k stars 701 forks source link

extension installation in collabora code #6384

Closed bnjmnjrk closed 1 year ago

bnjmnjrk commented 1 year ago

Is your feature request related to a problem? Please describe. I would like to install an extension in collabora code. For this I have written the following dockefile:

from collabora/code
copy soblex-hsb-2-20-11-01-07-2017.oxt .
user root
run usermod -s /bin/bash cool

after docker build -t container . and docker run --rm -it -p 9980:9980 -e "extra_params=--o:ssl.enable=false" container bash I tried to install the extension with unopkg, but since the installation ends up in the home directory of the user "cool", the installation does nothing. I tried to move the uno_packages directory to the /opt/collabora/share directory but that didn't change anything. I have always checked the results with a nextcloud instance. I also tried to unpack the extension locally and put it in /opt/collaboraoffice/extensions but that didn't work either. After searching the internet for a long time for a solution, I got the feeling that there is still no solution for this.

Describe the solution you'd like I would like to know if this feature already exists, and if not i would be happy if it would be implemented

bnjmnjrk commented 1 year ago

i have managed to add a new language, doing the following:

host:

$ unzip -d dict-<some-abbreviation> <lang-extension>.oxt
# dockerfile: copy dict-<some-abbreviation> /opt/collaboraoffice/share/extensions/dict-<lang-abbr>

inside the container:

$ ls /opt/collaboraoffice/share/extensions/dict-<some-abbr>
# this will show what language abbriviation is used internally
$ vim /etc/coolwsd/coolwsd.xml
# add the abbriviation you learned from 'ls' to "allowed languages"

p.s. the # means a bash comment, not root