Open Slackadays opened 1 year ago
Thanks for the suggestion. The Windows and macOS variants are working fine, so I wouldn't touch those. Fixing Linux sounds nice though. However, I have some concerns:
xsel
is already getting shipped which would put CB at no worse a position than before if it was just swapped out.xsel
has some bespoke license that almost looks like MIT but not quite. xclip
and wl-clipboard
use GPL, though, so there's that.
The project Clipboard now supports X11, Wayland, Windows, and macOS. I realized that you could now switch from using
xsel
andclipboard.exe
andpbcopy
to justclipboard
for all those platforms at the same time. In addition, this change would also fix https://github.com/sindresorhus/clipboardy/issues/38 due to the new Wayland support too. This also means you can support the BSDs as well!In the code, you would condense all the different cases except Android into one that just calls
clipboard
. For the fallbacks, you would just bundle Clipboard for the various platforms you support.Edit: This would also enable support for Linux/BSD where there isn't X11/Wayland because CB doesn't depend on them to exist.