<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:rolfofsaxony@gmail.com" title="rolfofsaxony@gmail.com">rolfofsaxony@gmail.com</a>
</span> changed
          <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Problem installing libreoffice extension as shared"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=100307">bug 100307</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>WORKSFORME
           </td>
           <td>---
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Ever confirmed</td>
           <td>
                
           </td>
           <td>1
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Problem installing libreoffice extension as shared"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=100307#c8">Comment # 8</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Problem installing libreoffice extension as shared"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=100307">bug 100307</a>
              from <span class="vcard"><a class="email" href="mailto:rolfofsaxony@gmail.com" title="rolfofsaxony@gmail.com">rolfofsaxony@gmail.com</a>
</span></b>
        <pre>(In reply to Justin L from <a href="show_bug.cgi?id=100307#c7">comment #7</a>)
<span class="quote">> 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
> <a href="https://help.libreoffice.org/Common/Extension_Manager">https://help.libreoffice.org/Common/Extension_Manager</a></span >

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.</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>