Skip to content

Adjust search for LO binary on Linux to support Arch Linux#189

Open
jan-san wants to merge 2 commits intocarboneio:masterfrom
jan-san:fix/adjust-linux-binary-search
Open

Adjust search for LO binary on Linux to support Arch Linux#189
jan-san wants to merge 2 commits intocarboneio:masterfrom
jan-san:fix/adjust-linux-binary-search

Conversation

@jan-san
Copy link

@jan-san jan-san commented Jul 3, 2023

This PR makes two changes to the binary search on linux:

  • the version number part of the dirname is made optional
  • besides /opt, /usr/lib is added as a base directory to search for the dirname pattern

These adjustments allow the library to detect the LibreOffice installation on Arch Linux when using the libreoffice-fresh package, which installs LibreOffice to /usr/lib/libreoffice/

@GoldenReverie
Copy link

testing performed on this file change, can confirm that I no longer get the missing install error. Possibly related but also maybe not but the example code does not produce a functional PDF file as per below:

result.pdf

Tested on:
DISTRIB_ID="ManjaroLinux"
DISTRIB_RELEASE="24.0.0"
DISTRIB_CODENAME="Wynsdey"
DISTRIB_DESCRIPTION="Manjaro Linux"
with Sway desktop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants