Giter VIP home page Giter VIP logo

Comments (10)

slavistan avatar slavistan commented on August 11, 2024 1

Closing for lack of activity. Reopen if you feel the problem is on this project's side.

from lf-gadgets.

slavistan avatar slavistan commented on August 11, 2024

Very curious. May I ask you to reinstall lf-yt and paste the output of sudo -E make install? I would like to see if anything does wrong during your setup.

from lf-gadgets.

MuizU avatar MuizU commented on August 11, 2024

Very curious. May I ask you to reinstall lf-yt and paste the output of sudo -E make install? I would like to see if anything does wrong during your setup.

This was what I got

mkdir -p "/usr/local/bin"
cp -f lf-yt lf-yt-cleaner lf-yt-previewer \
"/usr/local/bin"
chmod 755 "/usr/local/bin/lf-yt" \
"/usr/local/bin/lf-yt-cleaner" \
"/usr/local/bin/lf-yt-previewer"
mkdir -p "/home/muizu/.config/lf-yt"
cp -f lfrc-yt "/home/muizu/.config/lf-yt"

from lf-gadgets.

slavistan avatar slavistan commented on August 11, 2024

Looks good to me. Do regular ueberzug image previews work with lf? Check out the lf-ueberzug directory in this repository if you need help setting that up.

Other than that you may try to (temporarily) delete your lfrc (should be located in $HOME/.config/lf/). lf-yt uses its own config lfyt-rc, however the default lfrc is loaded aswell (something which I cannot avoid currently as that's lf's built-in behavior). Your own lfrc may break things with lf-yt, try to remove it temporarily.

If none of that works we'll do some systematic debugging.

from lf-gadgets.

MuizU avatar MuizU commented on August 11, 2024

I removed my lfrc and tried lf-ueberzug. The issue I'm having is that even lf-ueberzug doesn't work despite me removing the config file.
image

from lf-gadgets.

slavistan avatar slavistan commented on August 11, 2024

Okay, your ueberzug version is up-to-date, aye? (18.1.9).

Run this in your terminal to ascertain that image previews work. This should display your .png image at the top left corner of the terminal.

cd $(mktemp -d)
img=/full/path/to/image.png # your image here

mkfifo fifo
tail -f fifo | ueberzug layer --silent &
sleep 1

cat <<-EOF | paste -sd '' >fifo
{
"action": "add", "identifier": "lf-preview",
"path": "$img", "x": 0, "y": 0, "width": 20, "height": 30,
"scaler": "contain"
}
EOF

image

from lf-gadgets.

MuizU avatar MuizU commented on August 11, 2024

Yes, my ueberzug version is up to date. I wasn't able to successfully execute that script
image

from lf-gadgets.

slavistan avatar slavistan commented on August 11, 2024

Very curious indeed. The above code snippet is a minimum working example for ueberzug overlays which requires nothing more than GNU/linux and ueberzug.

Your ueberzug terminates with exit code 1 where it shouldn't terminate at all. Remove the --silent flag from the above script and try again. ueberzug should then tell you its problem.

from lf-gadgets.

MuizU avatar MuizU commented on August 11, 2024

This is what I'm getting
image

from lf-gadgets.

slavistan avatar slavistan commented on August 11, 2024

Alright, something's definitely wrong with your ueberzug installation. Please head over to ueberzug's github page and create an issue for that very problem. Once that's fixed lf-yt will probably work as intended.

from lf-gadgets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.