
我想使用 libreoffice flatpak 版本將 odt 檔案無頭轉換為 pdf。
所以例如
libreoffice --headless --convert-to pdf ./somefile.odt
但是,我想為此使用 flatpak 版本。
答案1
這:
flatpak run org.libreoffice.LibreOffice/x86_64/stable --headless --convert-to pdf ./somefile.odt
似乎有效。
因此,您可以設定別名:
alias libreoffice="flatpak run org.libreoffice.LibreOffice/x86_64/stable"
並將其添加到您的 ~/.bashrc 檔案中,然後像您習慣的那樣無頭使用 libreoffice。