<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:jluth@mail.com" title="Justin L <jluth@mail.com>"> <span class="fn">Justin L</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - 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>UNCONFIRMED
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>WORKSFORME
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - Problem installing libreoffice extension as shared"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=100307#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - 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:jluth@mail.com" title="Justin L <jluth@mail.com>"> <span class="fn">Justin L</span></a>
</span></b>
        <pre>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></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>