how to use libreoffice flatpak headlessly

I would like to use the libreoffice flatpak version to headlessly convert odt files to pdf.

So e.g.

libreoffice --headless --convert-to pdf ./somefile.odt

However, I want to use the flatpak version for this.

2

1 Answer

This:

flatpak run --headless --convert-to pdf ./somefile.odt

seems to work.

Hence, you can set an alias:

alias libreoffice="flatpak run "

and add it to your ~/.bashrc file and use libreoffice headlessly, like you are used to.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like