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

Unable to preview office files using libreoffice #61

Open
kd-koda opened this issue Jun 22, 2023 · 2 comments
Open

Unable to preview office files using libreoffice #61

kd-koda opened this issue Jun 22, 2023 · 2 comments

Comments

@kd-koda
Copy link

kd-koda commented Jun 22, 2023

Sorry in advance. Maybe I missed something, but is this not supported? Using lf on macos. Libreoffice was installed with homebrew. I do have microsoft Office installed, but i manually set priority to libreoffice in the ctpv config file.

Lf just shows "binary" where preview should be. When I call ctpv in terminal (kitty) to one of these files (docx, pptx, xlsx) I get the following in the attached screenshot

Screen Shot 2023-06-22 at 10 20 54 AM

@NikitaIvanovV
Copy link
Owner

It looks like ctpv cannot find libreoffice and fallbacks to cat, which just spits out raw file bytes. Can you run libreoffice through command line? If you can, how do you do it?

@VSuryaPrashanth
Copy link

In MacOS there is no libreoffice when installed with brew, instead there is soffice. A work around for this is to simply link them with ln /opt/homebrew/bin/soffice /opt/homebrew/bin/libreoffice. But I think its batter to change libreoffice to soffice in ctpv.

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

No branches or pull requests

3 participants