Python Macro in LibreOffice

Hi,

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”?

Thank for the help,

John

1 Like

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?

1 Like

Thank you :smile: very much.

It saved me quite some time to fiddle through the directories in Flatpak.

And I can confirm putting python macros to that folder works. (need to use root access)

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.

This topic was automatically closed after 2 days. New replies are no longer allowed.