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

lf stay working in background #912

Closed
OssNasr opened this issue Aug 18, 2022 · 7 comments
Closed

lf stay working in background #912

OssNasr opened this issue Aug 18, 2022 · 7 comments

Comments

@OssNasr
Copy link

OssNasr commented Aug 18, 2022

Im using lf in voidlinux musl base system, and after i press q, i still see lf in top, and if i issue another lf command and quit, i see two instances of lf working in background

2

@lahwaacz
Copy link

lf runs a server process that is kept running when a client quits. Search for the autoquit option in the documentation: https://pkg.go.dev/github.com/gokcehan/lf#section-documentation

@OssNasr
Copy link
Author

OssNasr commented Aug 18, 2022

Ok, but im not running a server though, im logging in my machine on tty.

I mean, im using it as a main system from tty.

@rafcon-dev
Copy link

rafcon-dev commented Aug 20, 2022

That's not what he meant. When you open lf, lf starts two things, a "server" process, and the "gui" that you see. The gui that you see comunicates with the server. This is to enable several instances of lf to comunicate between each other, to past files from one to another for example (so each gui effectively comunicates with the server that passes responses between the guis)

The autoquit options makes sure that the server is killed when there are no more "guis" open. Is it weird that it is not on by default? Yes, but I guess it's to make startup faster, so you get some small bloat on your ram.

@OssNasr
Copy link
Author

OssNasr commented Aug 20, 2022

Thanks for your explanation, it's clear for me now, and yes, i thought it might be reasonable for "autoquit" to be enabled by default, but you persuade me already about the server to be communicating with other instances of lf, its like a replacement for tabs i guess, its something like a taste for the developer... And it might be better than tabs too.

Thanks :)

@rafcon-dev
Copy link

Yeah, I for example like to have two guis inside tmux side by side, so as to mimic a two pane manager like midnight commander for example. You're welcome!

@ghost
Copy link

ghost commented Oct 24, 2022

Infact I started liking the server way. Caz tabs are limited to a single client.

@joelim-work
Copy link
Collaborator

@OssNasr If you want to use lf without starting a server, you can use the -single option. Although note that in this case you can't use some features that depend on the server such as lf -remote commands.

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

4 participants