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.odtHowever, I want to use the flatpak version for this.
21 Answer
This:
flatpak run --headless --convert-to pdf ./somefile.odtseems 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