<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - loolwsd doesn't honor ${CONFIGURATION_LAYERS}: dlopen(…/program/libmergedlo.so) can't find config"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=136526">136526</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>loolwsd doesn't honor ${CONFIGURATION_LAYERS}: dlopen(…/program/libmergedlo.so) can't find config
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice Online
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>guilhem@fripost.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>loolwsd doesn't honor the custom LibreOffice registry location set in
program/fundamentalrc:CONFIGURATION_LAYERS).  The
dlopen(…/program/libmergedlo.so) seems to unconditionally look for it at
…/share/registry, and the missing *.xcd lead to bootstrapping exceptions:

    [ forkit ] TRC  dlopen(…/program/libmergedlo.so, RTLD_GLOBAL|RTLD_NOW)|
kit/Kit.cpp:2833
    [ forkit ] TRC  Invoking lok_preinit(…/program", "file:///user")|
kit/Kit.cpp:2887
    Init vcl
    Bootstrapping exception 'cannot find
/org.openoffice.TypeDetection.Types/Types
…/configmgr/source/rootaccess.cxx:213'
    [ forkit ] TRC  Finished lok_preinit(…/program", "file:///user") in 25
ms.| kit/Kit.cpp:2897
    […]
    Bootstrapping exception 'cannot find /org.openoffice.Setup/L10N
…/configmgr/source/rootaccess.cxx:213'

Such a loolwsd is not functional: all client connections timeout.  A workaround
is to create symlinks …/share/registry/*.xcd to their actual location before
starting loolwsd.  (Didn't look for a minimal list of .xcd files to create, but
AFAICT at least main.xcd and pdfimport.xcd are required.)

[Originally filed at <a href="https://bugs.debian.org/969653">https://bugs.debian.org/969653</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>