Fix xclip not working on xorg and add Windows support #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed changes
The clipboard copy feature doesn't work on my Linux xorg machine unless I add
cmd += " -selection clipboard"
.System details
OS: Manjaro Linux amd64
Desktop Environment: GNOME xorg
Kernel: 6.6.10-1-MANJARO
xclip version: xclip-0.13-4
Not sure if this is a distro-specific issue.
If none of the 3 UNIX clipboard programs ("xclip", "wl-copy", "pbcopy") are present, then we fallback to this cross-platform clipboard package which works on Windows, and if that also fails to initialize, then the copy function is disabled.
Working clipboard copy on Windows 10 amd64 PowerShell
Bumped GitHub Actions as Node 16 is deprecated, and Go 1.22 has been released.
Additional information about Go clipboard
It works out of the box on Windows with no dependencies or compilation tweaks.
Known issues
int64
type.?
on Windows 10 when copied to clipboard.