I want to provision a LibreOffice installation on macOS with an extension for all users. Under Linux I can use
sudo unopkg --shared add org.example.Extension
If I try that on macOS I get this instead:
~ % sudo unopkg add --shared /tmp/de.wikimedia.Defaults.oxt
ERROR: Exception occurred: You need write permissions to install a shared extension!
ERROR: unopkg failed.
LibreOffice has been installed using Homebrew, unopkg has been symlinked:
~ % which unopkg
/opt/homebrew/bin/unopkg
~ % realpath $(which unopkg)
/Applications/LibreOffice.app/Contents/MacOS/unopkg
I couldn’t find any equivalents on macOS to /usr/lib64/libreoffice/share/extensions/ on Linux to check for permission problems. I suspect macOS’s System Integration Protection is at fault here but I guess someone might have a solution, though.