Comments (14)
That looks like the socket used for remote commands. Check that the file exists and the server is running. You can also perform a basic test using the following command:
lf -remote 'send echo hello world'
from lf.
Thank you. When I run lf -remote 'send echo hello world'
, I get the same error message (see below). When I navigate to the folder involved, there is no lf.{user}.sock
file. However, when I run lf
in iTerm, there is no error, and there is a lf.{user}.sock
file.
So it seems that lf
doesn't start the server under Alacritty. Is it there a way to fix that?
from lf.
There must be something wrong with your settings for Alacritty then, if remote commands work on iTerm.
The socket path is defined in the following code, which depends on XDG_RUNTIME_DIR
:
from lf.
Also it might be possible for some reason the server itself doesn't start automatically on Alacritty? In that case you can try starting the server manually using lf -server
.
from lf.
Thank you for the detailed response. I tried starting the server in Alacritty, using lf - server
, but it didn't resolve the issue. I also tried to define XDG_RUNTIME_DIR
without better luck. It seems, then, that the problem is that, somehow, the server doesn't get started when lf
runs in Alacritty.
Again, if I run lf
in iTerm and then in Alacritty, everything works.
from lf.
You have added an extra space, the command is lf -server
, not lf - server
.
Otherwise I'm not sure what the issue can be then. I tried using Alacritty and couldn't reproduce your issue. The server should either start and print hi!
then continue running, or terminate with some error (e.g. socket already in use).
from lf.
I posted in the Alacritty Issues page, but they state that it is a problem with lf
. Any suggestions to go from here?
from lf.
I didn't think it was an issue with Alacritty to begin with in the first place. However since I don't have any issues with the server starting up using Alacritty, it's practically impossible for me to investigate.
Unless you're willing to clone the repo and debug the following code yourself:
Lines 335 to 337 in 12e99fd
Lines 159 to 179 in 12e99fd
from lf.
Also if you're not interested in any of this server stuff, you can also try using lf -single
instead of lf
, which runs just the file manager itself without the server.
from lf.
Thank you for the detail reply. lf -single
works fine. Of course, multiple windows are not an option for file operations. Regarding the code, unfortunately I haven't learned Go yet. I think that I will stick to iTerm for the time being. Thank you, again.
from lf.
I don't know if this helps.
I have tested under MacOs 13.4.1, Terminal, iTerm, and Alacritty, and all of them have the same issue discussed above.
iTerm worked because I had a shortcut to start lf
in the form: lf /{bookmarks folder}
.
I tried the same shortcut under Terminal and Alacritty, and both also work fine. My {bookmarks folder}
is the path to a folder with symlinks to the folders I use most often.
I have made an alias to run lf
that way, and that solves the issue. The alias is alias mylf='lf /{bookmarks folder}
, where {bookmark folder}
points to a folder within my home folder.
Why this works? It's still a mystery to me.
from lf.
So you're saying that running lf
by itself doesn't cause the server to start, but running lf /some/path
does? Have you tried starting lf
directly on the command line without any kind of aliases, shortcuts or any other configuration at all?
Also have you tried enabling logging with the -log
option?
I still can't reproduce this issue, but I'm guessing it might have something to do with the value of os.Args[0]
in the line cmd := detachedCommand(os.Args[0], "-server")
, though I could be completely wrong.
P.S. Another approach might be to use strace
to log system calls made by lf
. Assuming the server is created properly, it should fork a child process for the server and make an exec call with the appropriate arguments (requires the --follow-forks
option to see this).
from lf.
I solved the issue. I downloaded Kitty, just to try another terminal, and after trying to run lf
, I got the message lf not in $PATH
. Which seemed strange, because I had installed lf
under my user folder, which is in $PATH
.
So I moved lf
to /usr/local/bin
, which appears earlier on my $PATH
, and restarted the terminal. Now lf
works everywhere!
Thank you for your help and patience. I really appreciate it. And, by the way, I wanted to troubleshoot this issue because I believe that lf
is the best file manager out there.
from lf.
No worries, glad you solved your issue. 👍
It's good that you have the patience to try out different things (e.g. installing another terminal) to figure out the root cause. Others might have given up, assumed it was a bug in lf
, and moved onto a different file manager.
from lf.
Related Issues (20)
- lf image preview flickering HOT 5
- Duplicate icon
- Mouse buttons don't work
- Preview window colors HOT 14
- Yank path w/filename, filename, and file (As in Ranger) in Powershell HOT 6
- [QUESTION] Paste with overwrite for multiple files HOT 5
- Main Column Line Numbers Only HOT 8
- Outdated file information for recreated directories HOT 9
- directories have another font type HOT 2
- Feature request: highlighting of cursors when inactive HOT 3
- Feature request: add an lfrc switch to move duplicate copy suffixes at the beginning of filename. HOT 4
- `autoquit` should be enabled by default HOT 6
- how to use fribidi within lf.
- sixel preview writes out of bounds
- Broken characters of dir when I use `-print-last-dir` option / change drive option `/d` in `lfcd.cmd` HOT 3
- Issue with scrolling using alt key HOT 6
- Feature request: precalculate previews for files around the cursor HOT 3
- lf does not open terminal text editor when going right HOT 4
- Multishell/Crossplatform handling of `--` HOT 3
- how to use `lf -remote` in cmd? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lf.