[Libreoffice-bugs] [Bug 50278] Provide separate dock icons for each component on macOS instead of or in addition to the global launcher aka make components single apps

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Apr 27 12:31:09 UTC 2020


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

--- Comment #17 from Chris Cunningham <thumperward at hotmail.com> ---
(In reply to Tor Lillqvist from comment #16)
> > /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.

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.

-- 
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/20200427/0f19463e/attachment.htm>


More information about the Libreoffice-bugs mailing list