[Libreoffice-bugs] [Bug 100307] Problem installing libreoffice extension as shared

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Nov 3 10:06:24 UTC 2017


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

rolfofsaxony at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |---
     Ever confirmed|0                           |1

--- Comment #8 from rolfofsaxony at gmail.com ---
(In reply to Justin L from comment #7)
> I do this all the time, but yes - you can't run LibreOffice as sudo,
> otherwise the users files are owned as root.  Here is the bash code that I
> use to install shared extensions as part of my machine rollout:
> 
> #
> -----------------------------------------------------------------------------
> -
> # Set LibreOffice defaults with extension
> #
> -----------------------------------------------------------------------------
> -
>   if [ -z "$(pgrep soffice)" ]; then
>     LO_EXTENSION=LanguageTool-3.5.oxt
>     if [ -e ${LO_EXTENSION} ]; then
>       echo   Adding ${LO_EXTENSION} extension
>       unopkg   add   --shared    ${LO_EXTENSION}
>     else
>       echo "  ... unable to find ${LO_EXTENSION}"
>     fi
>   else
>     echo "  ... LibreOffice is running, so skipping adding any extensions"
>   fi
> 
> Marking as works for me. I've been doing this since 4.x, and most recently
> on 5.4.2. See the help file for how to install shared extensions at
> https://help.libreoffice.org/Common/Extension_Manager

This bug report is specifically about python extensions and as far as I know
LanguageTool is not written in python.
The command that you have provided, may well work with Basic or Java extensions
but it fails with python.
Installing as superuser, installs ONLY for superuser even if the install for
all users option is selected.
Installing using sudo and selecting install for all users, shows the extension
for all users but than fails miserably, when asked to activate, being that it
cannot find the path of the extension.
I have even tried creating another version specifically for multiuser
installation, where the Addons.xcu file contains location=share:uno_packages
rather than the usual location=user:uno_packages entry but that fails too.

-- 
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/20171103/49ba69e6/attachment.html>


More information about the Libreoffice-bugs mailing list