-
Notifications
You must be signed in to change notification settings - Fork 16
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
WSL2 support #134
Comments
Hi, thanks for the issue and testing. Are you using the default copy command in the config? You should be able to see this in the copy_cmd field in the config file stored at The command is always run as Let me know if that works out, I don't currently have access to a Windows machine to check but I can find one if it doesn't |
I am using the default configuration. theme = 'base16-ocean.dark'
db_dir = '/home/wise/.local/share/the-way/the_way_db'
themes_dir = '/home/wise/.local/share/the-way/themes'
copy_cmd = 'xclip -in -selection clipboard' I was about ready to apologize because I was able to make it work ONCE on my main desktop computer which is running the Windows Terminal Preview version on Windows 11, and earlier I tried on my work latop which has stable Windows Terminal and Windows 10. After the first try with All I did was try to create a snippet with variables and copy that from the search function. It COMPLETELY freezes the terminal and Windows doesn't even realize it is, it's like it's absolutely stuck. So I thought it could be an issue with variables in snippets, but trying to replicate the first result didn't work either. Windows Terminal just freezes. So... You mean make an executable script with EDIT 1: It doeesn't just freeze the terminal. It freezes whatever I try to paste the clipboard in after the EDIT 2: the-way cp 2
/home/wise/clip.sh: line 3: /dev/stdin: Permission denied I tried it with a script (with a bash shebang), I get permission denied. What exactly does calling |
Yeah I'm not super familiar with WSL2 but I don't think using xclip can work, the xwindow would need to be connected to Windows. And yes, I meant an executable as you tried. It's just meant to take what's in stdin, echo it, and then pipe that to clip.exe (since for some reason clip.exe doesn't work without the pipe, as in |
Had a chance to try it out on WSL2 - this should work: #!/bin/sh
echo "$(cat -)" | clip.exe and set copy_cmd to ./myscript |
Yep! Works perfectly. Thank you very much for the support. This can be closed! |
Hello,
I know Windows is not supported yet. But I tried to make it work on WSL2 nonetheless.
I'm stuck on this issue:
This happens every time
the-way
tries to copy stuff to the SYSTEM clipboard. I'm assuming it's because wsl2 cannot do it natively. WSL2 can use Windows binaries tho, as specified hereI am unsure why it tries to use a display. I hope anyone can shed some light about this.
search
seems to work properly. Altough with thecmdsave
function, I get the same issue after I use search.Please let me know if you need further testing.
The text was updated successfully, but these errors were encountered: