How can I connect to a FlatPak instance of LibreOffice?
This works in command line to start LIbreOffice Flatpak. But I can’t seem to connect to it.
flatpak run org.libreoffice.LibreOffice --norestore --norestore --nofirststartwizard --nologo --accept="socket,host=localhost,port=2002,tcpNoDelay=1;urp;"
Also starts LibreOffice but I can’t seem to connect.
from subprocess import Popen
def main():
Popen('flatpak run org.libreoffice.LibreOffice --norestore --norestore --nofirststartwizard --nologo --accept="socket,host=localhost,port=2002,tcpNoDelay=1;urp;"', shell=True)
if __name__ == "__main__":
main()
I looked into:
$ cat /etc/apparmor.d/usr.lib.libreoffice.program.soffice.bin
Some of the comments
# This profile should enable the average LibreOffice user to get their
# work done while blocking some advanced usage
# Namely not tested and likely not working : embedded plugins,
# Using the LibreOffice SDK and other development tasks
# Everything else should be working
Is seems the comments are saying Using the API is not possible.