Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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