NikitaIvanovV / ctpv

Image previews for lf file manager
https://www.nikitaivanov.com/man1/ctpv
MIT License
264 stars 24 forks source link

No Previews for LF Except Text Files on Gentoo #21

Closed emrakyz closed 1 year ago

emrakyz commented 1 year ago

Hi,

My setup is: Gentoo 64bit (Multilib) / OpenRC / EloginD / Xorg-Server / Nvidia-Proprietary Drivers / newly built, updated. Packages from Gentoo Package Manager: Latest versions of ffmpeg, ffmpegthumbnailer, ueberzug, poppler, bat, libreoffice, pdftoppm (also tried installing ueberzug with pip3). Window Manager: DWM 6.4 (latest git version) Terminal Emulator: Suckless ST 0.9.0 (latest git version) LF: Just installed with native single line GO command as in its tutorial (Also tried pre-built binary). Edited ~/.config/lf/lfrc accordingly for ctpv. All files are in $PATH.

I can only see text files' previews on lf. Other type of files are seen as "binary". With the same setup on Arch and Artix Linux I could have seen image previews with my own scripts. Now using my own scripts stuck on "loading" where images should be at and I can't even see text previews. With ctpv, there is no "loading" that is stuck but videos, pdfs, images are seen as "binary" files.

I am suspecting if it is related with policy, session management or any type of related stuff, since they are a little bit different in Gentoo as far as I understand. My other configs on lf work as before such as shortcuts, icons and other functions.

Any type of help is appreciated. Thanks!

emrakyz commented 1 year ago

Solved: Recompile Python with "tk" use flag since Ueberzug requires tkinter. Found out about this by trying the command ueberzug layer which had output that states "no modules for tkinter".