-
Notifications
You must be signed in to change notification settings - Fork 496
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
Windows Terminal (Arch in WSL) mistaken for WezTerm #1611
Comments
@MarvinJWendt I am wondering if it is getting more than one of the environment variables that it uses to detect the emulator and picking the non Windows Terminal one. If you look at your environment variables in that shell do you see the WT_Session one? And any others from this list? yazi/yazi-adapter/src/emulator.rs Line 61 in 0cdaff9
|
@MarvinJWendt Could you share some further details in terms of what your hack/workarounds are for other applications (Or even what the requirement is, might be a case it can be fully worked around etc.)? |
Nope, it's not set.
I am not quite sure myself anymore, what and why I implemented 😅 All my display / shell env variables:
|
It might have to do with this issue where the WT_* environment variables don't get set when opening Windows Terminal as a default. Any chance it works if you open the Windows Terminal app and then go into WSL2? |
With #1735 you should be able to get the Chafa work, please make sure you don't have |
I'm going to lock this issue because it has been closed for 30 days. ⏳ |
What system are you running Yazi on?
Windows WSL
What terminal are you running Yazi in?
Windows Terminal
yazi --debug
outputDid you try the latest nightly build to see if the problem got fixed?
No, and I'll explain why below
Describe the bug
Bug discovered in discussion previously. (#1470 (reply in thread))
Yazi is mistaking the Windows Terminal for WezTerm. Yazi always detects either Wayland or X11, which is not available on my system (Windows Terminal with Arch in WSL). I do have some hacks in place in my WSL to make some tools work. It simulates a display, which sets the DISPLAY env var. There is no Wayland/X11 running, but some of those env variables are set.
Setting

DISPLAY
env var to empty:Setting

WAYLAND_DISPLAY
to empty string:Completely unsetting the env variables:
Minimal reproducer
yazi --debug
Anything else?
If you do not have access to a WSL instance, I would be happy to test nightlies for you.
The text was updated successfully, but these errors were encountered: