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

how to restart lf to reset ueberzug #1556

Open
lucas-mior opened this issue Dec 20, 2023 · 1 comment
Open

how to restart lf to reset ueberzug #1556

lucas-mior opened this issue Dec 20, 2023 · 1 comment

Comments

@lucas-mior
Copy link
Contributor

lucas-mior commented Dec 20, 2023

Sometimes image previews using ueberzug stop working and I need
to restart lf to make them work again. I have been unable to write a command to spawn a new lf
with the same environment and quit the original session.
What I have tried:

# `lfimg` is the script to setup ueberzug and launch lf

# this works but the old session is still there
cmd restartlf ${{
    lfimg
}}
# this only quits lf without spawning a new one  (the error is "initializing screen: open /dev/tty: no such device or address")
cmd restartlf ${{
    setsid -f lfimg
    lf -remote "send $id quit"
}}

I now that I should probably debug ueberzug, but this bug is hard to reproduce.

@cv1618
Copy link

cv1618 commented Feb 3, 2024

Sounds like there's not good things going on in this lfimg script lol. For previews I use this guys scripts and tutorial.
https://github.com/thimc/lfimg

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

2 participants