<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Provide separate dock icons for each component on macOS instead of or in addition to the global launcher aka make components single apps"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=50278#c17">Comment # 17</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Provide separate dock icons for each component on macOS instead of or in addition to the global launcher aka make components single apps"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=50278">bug 50278</a>
              from <span class="vcard"><a class="email" href="mailto:thumperward@hotmail.com" title="Chris Cunningham <thumperward@hotmail.com>"> <span class="fn">Chris Cunningham</span></a>
</span></b>
        <pre>(In reply to Tor Lillqvist from <a href="show_bug.cgi?id=50278#c16">comment #16</a>)
<span class="quote">> > /Applications/LibreOffice.app/Contents/MacOS/soffice --writer

> Surely one can't assume that the LibreOffice.app is installed in
> /Applications. This is not the right way to solve this issue.</span >

Making the assumption that the launcher is in the same directory as the main
LibreOffice app bundle (which I think is the only practical solution), it's not
difficult to use a relative path:

dir=$(dirname "$0")
"${dir}/../../../LibreOffice.app/Contents/MacOS/soffice" --writer

So long as both app bundles are in the same directory this should work
regardless of where they are on disk.</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>