thimc / lfimg

Image preview support for lf (list files) using Überzug
GNU General Public License v3.0
253 stars 45 forks source link

REQUEST: fallback to none/alternate image handler if X forwarding over SSH not possible #2

Closed torma616 closed 3 years ago

torma616 commented 4 years ago

Due to the way ueberzug works with X, using this with the lfrun alias causes ueberzug errors to print over the display on a machine where X can't be forwarded.

Is there a way to maybe use chafa as a fallback when this happens? I'm thinking a separate alias to lfrunremote in .profile would do the trick, but I'm not sure how to change the image backend.

thimc commented 3 years ago

Hi,

Thank you for the request. I've made the necessary changes in the commit below.

SSH compatibility using chafa