I’ve installed my first Flatpak, LibreOffice. I have a python macro that I wrote and to make it visible in LibreOffice I just place it in /usr/lib/libreoffice/share/Scripts/python. On a fresh system with the Flatpak installed, that directory doesn’t exist. How do I place my macro inside a directory that I’m guessing lives inside the Flatpak “container”?
I think I got it to work by finding the corresponding directory in:
/var/lib/flatpak/app/org.libreoffice.LibreOffice/x86/64/stable/a_big_string/files/libreoffice/share/Scripts/python
Maybe that will help someone. And is this a “best practice” or should I be staying out of there?
Just to be clear: This is not a best practice. If you add files they should get deleted with an update & if you modify files it could break updates. A flatpak installation folder is not supposed to be modified by the user.
How to define the macros I can’t say. Maybe it’s not considered yet & you must report an issue with LibreOffice.