Commit Graph
4 Commits
Author SHA1 Message Date
Yuhao 21fbdc9a3b Merge pull request #18 from Laplace5079/fix/windows-libreoffice-backend
fix(libreoffice): enable real LibreOffice backend on Windows and macOS
2026-03-11 17:03:26 +08:00
OpenClaw 02acd54ca1 fix: replace placeholder URLs with correct HKUDS/CLI-Anything URL
Fixed 8 setup.py files that had placeholder URLs:
- Changed 'yourusername' to 'HKUDS'
- Changed repo name to 'CLI-Anything'

This fixes broken metadata when packages are published to PyPI.
2026-03-11 13:53:20 +08:00
Laplace5079andClaude Opus 4.6 67e7032d7d fix(libreoffice): enable real LibreOffice backend on Windows and macOS
find_libreoffice() previously only searched PATH, which misses the
default install location on Windows (Program Files\LibreOffice\program)
and macOS (/Applications/LibreOffice.app). Added platform-aware
fallback paths so the backend works out of the box after a standard
install.

get_version() called `soffice --version` without --headless, which
opens a GUI splash on Windows and hangs indefinitely. Now uses
`--headless --version` and gracefully falls back on timeout.

Tested on Windows with LibreOffice 26.2.1:
  - 89 unit tests PASS
  - 69 E2E tests PASS (including 13 real LibreOffice backend tests)
  - PDF, DOCX, XLSX, PPTX, CSV all verified via magic bytes / OOXML

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 19:25:38 -06:00
yuh 01488030bd first commit 2026-03-08 21:58:43 +08:00