Closed pierceglenn12345 closed 1 month ago
If I am using any of the regular emacs keybindings, like C-y to yank text from the kill ring I am getting the error:
Warning: Error on separate thread: None of the commands are installed: (.....)
That is because trivial-clipboard
can't find the needed executable. I don't know how WSL works - does it run X, wayland or native Windows facilities?
Well I have tried a number of commands to see whether I am in X11 or wayland, and all of them returned without output. I did run xdpyinfo and got a large set of data back, which I understand to mean that there is at least an X11 server running. Will play around for a more definitive answer.
Edit: I installed xeyes and I believe that tool confirms that I am using X11
If you're running X11, then try to run guix install xsel
.
Will do. Is there anything else I will need to do besides restarting Nyxt?
Edit: Restarted nyxt and I am not getting any changes. Do I need to add some config code? or maybe I need to reboot WSL2 all together.
Edit2: As an aside. I am noticing that gemini capsules and gopherholes are not working. Is this part of the same problem?
@pierceglenn12345 the issue you're experiencing seems to be exclusively related to the WSL setup. Nyxt depends on sbcl-trivial-clipboard
, which in turn depends on the necessary clipboard executables. In other words, if you were to install Nyxt using Guix on top of a Linux distribution, then you wouldn't face the issue. I didn't expect guix install xsel
to fix it, but it was worth the try nonetheless.
What you need to figure out is whether your X window system environment is able to invoke xsel
(for instance, try to call xsel
from the command line and see the output of which xsel
). See also the output of:
nyxt --failsafe --eval '(trivial-clipboard::find-paste-command)' --quit
On a typical Guix installation it outputs (/gnu/store/.../bin/xsel --output --clipboard)
.
Edit2: As an aside. I am noticing that gemini capsules and gopherholes are not working. Is this part of the same problem?
Hard to say. It is not our current top priority to ensure that Nyxt runs smoothly under WSL. If such a bug can be reproduced on the official distribution methods via Guix or Flatpak, then it's a priority bug.
xsel returns no output at the command line, and which xsel returns '/home/me/.guix-profile/bin/xsel
The longer command returns nil and that also goes for pasting the s-expression portion into the nyxt repl. So, you are right about nyxt not knowing about where to find the clipboard executables.
I get this is not top priority. Just wanted to spur discussion for any others that run into this. I'll take your suggestions and see where I can take this. I appreciate your help @aadcg
If I am using any of the regular emacs keybindings, like C-y to yank text from the kill ring I am getting the error:
Warning: Error on separate thread: None of the commands are installed: (.....)
Note this also occurs if I simply run the function paste or paste-from-clipboard with the meta-x menu. Another note; copy-username works in copying to the clipboard and only right click paste seems to work.
Installed wsl2 + Ubuntu-22.04 on windows 10 pro. Installed the guix package manager using the systemcrafters installation video guide(would paste here, but I cant use C-y). then guix install nyxt. many ketbindings do not work from here. I have followed the steps outside the first sentence on linux machines with out this problem. This also might be related to #2186, though there were was not any further guidance there other than install the dependencies for the commands separately? I don't know how to go about doing this if that is the case.
Information
show-system-information
, trynyxt --system-information
(process:1537): Gtk-WARNING **: 10:10:20.856: Locale not supported by C library. Using the fallback 'C' locale. Nyxt version 3.11.6