flathub / com.visualstudio.code

https://flathub.org/apps/details/com.visualstudio.code
149 stars 69 forks source link

Support xsel #293

Open realcomplex opened 2 years ago

realcomplex commented 2 years ago

I keep getting the following error message when I try to use the clipboard: "Couldn't find the required xsel binary. On Debian/Ubuntu you can install it with; sudo apt install xsel". I do have xsel installed, so I think this might be a flatpak issue?

I am running VSCode purely in wayland using ozone, in case that might have anything to do with it.

Let me know if I can do anything to help solve the issue, or if any more information is needed.

vteivans commented 2 years ago

Sounds like a flatpak issue - I don't think that you will have the xsel in the flatpak container. You can enter the container to check what's available with:

flatpak enter com.visualstudio.code /bin/bash

But to run xsel from your parent OS, you can use flatpak-spawn (if it is possible to specify the binary):

/usr/bin/flatpak-spawn --host --env=TERM=xterm-256color xsel