Skip to content

Conversation

@techcaotri
Copy link

@techcaotri techcaotri commented Sep 20, 2024

For Wayland session, only wl-copy and wl-paste are supported to work with the clipboard. Other tools such as xclip or xsel won't work.
Tested with Ubuntu 22.04 with GNOME (X11) session host machine and QEMU KDE Neon 6 VM with KDE Plasma (XWayland) guest machine.

Comment on lines +343 to +344
if _, err = exec.LookPath("wl-paste"); err == nil {
cmd = exec.Command("wl-paste", "--no-newline")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make the if condition only wrap this portion so we have less duplicated code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants