golang-design / clipboard

📋 cross-platform clipboard package that supports accessing text and image in Go (macOS/Linux/Windows/Android/iOS)
https://golang.design/x/clipboard
MIT License
579 stars 64 forks source link

Hangs / slow on Linux #56

Open thewh1teagle opened 6 months ago

thewh1teagle commented 6 months ago

Image from file_example_PNG_500kB.png

➜  ~ go install golang.design/x/clipboard/cmd/gclip@latest
➜  ~ gclip -copy -f ~/Downloads/file_example_PNG_500kB.png 

Takes 10-30 seconds to copy it to clipboard

➜  ~ cat /etc/os-release                     
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

➜  ~ echo $XDG_SESSION_TYPE
wayland